1 #ifndef Py_INTERNAL_PARSER_H 2 #define Py_INTERNAL_PARSER_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #ifndef Py_BUILD_CORE 8 # error "this header requires Py_BUILD_CORE define" 9 #endif 10 11 extern struct _mod* _PyParser_ASTFromString( 12 const char *str, 13 PyObject* filename, 14 int mode, 15 PyCompilerFlags *flags, 16 PyArena *arena); 17 extern struct _mod* _PyParser_ASTFromFile( 18 FILE *fp, 19 PyObject *filename_ob, 20 const char *enc, 21 int mode, 22 const char *ps1, 23 const char *ps2, 24 PyCompilerFlags *flags, 25 int *errcode, 26 PyArena *arena); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 #endif /* !Py_INTERNAL_PARSER_H */ 32