1 #ifndef Py_PEGENINTERFACE 2 #define Py_PEGENINTERFACE 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 #include "Python.h" 12 #include "Python-ast.h" 13 14 PyAPI_FUNC(mod_ty) PyPegen_ASTFromString( 15 const char *str, 16 const char *filename, 17 int mode, 18 PyCompilerFlags *flags, 19 PyArena *arena); 20 PyAPI_FUNC(mod_ty) PyPegen_ASTFromStringObject( 21 const char *str, 22 PyObject* filename, 23 int mode, 24 PyCompilerFlags *flags, 25 PyArena *arena); 26 PyAPI_FUNC(mod_ty) PyPegen_ASTFromFileObject( 27 FILE *fp, 28 PyObject *filename_ob, 29 int mode, 30 const char *enc, 31 const char *ps1, 32 const char *ps2, 33 PyCompilerFlags *flags, 34 int *errcode, 35 PyArena *arena); 36 PyAPI_FUNC(mod_ty) PyPegen_ASTFromFilename( 37 const char *filename, 38 int mode, 39 PyCompilerFlags *flags, 40 PyArena *arena); 41 42 43 #ifdef __cplusplus 44 } 45 #endif 46 #endif /* !Py_PEGENINTERFACE*/ 47