jpayne@69: #ifndef Py_AST_H jpayne@69: #define Py_AST_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #include "Python-ast.h" /* mod_ty */ jpayne@69: #include "node.h" /* node */ jpayne@69: jpayne@69: PyAPI_FUNC(int) PyAST_Validate(mod_ty); jpayne@69: PyAPI_FUNC(mod_ty) PyAST_FromNode( jpayne@69: const node *n, jpayne@69: PyCompilerFlags *flags, jpayne@69: const char *filename, /* decoded from the filesystem encoding */ jpayne@69: PyArena *arena); jpayne@69: PyAPI_FUNC(mod_ty) PyAST_FromNodeObject( jpayne@69: const node *n, jpayne@69: PyCompilerFlags *flags, jpayne@69: PyObject *filename, jpayne@69: PyArena *arena); jpayne@69: jpayne@69: #ifndef Py_LIMITED_API jpayne@69: jpayne@69: /* _PyAST_ExprAsUnicode is defined in ast_unparse.c */ jpayne@69: PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty); jpayne@69: jpayne@69: /* Return the borrowed reference to the first literal string in the jpayne@69: sequence of statemnts or NULL if it doesn't start from a literal string. jpayne@69: Doesn't set exception. */ jpayne@69: PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_seq *); jpayne@69: jpayne@69: #endif /* !Py_LIMITED_API */ jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_AST_H */