ast.h 641 B

1234567891011121314151617181920212223242526272829
  1. #ifndef Py_AST_H
  2. #define Py_AST_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. PyAPI_FUNC(int) PyAST_Validate(mod_ty);
  7. PyAPI_FUNC(mod_ty) PyAST_FromNode(
  8. const node *n,
  9. PyCompilerFlags *flags,
  10. const char *filename, /* decoded from the filesystem encoding */
  11. PyArena *arena);
  12. PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
  13. const node *n,
  14. PyCompilerFlags *flags,
  15. PyObject *filename,
  16. PyArena *arena);
  17. #ifndef Py_LIMITED_API
  18. /* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
  19. PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
  20. #endif /* !Py_LIMITED_API */
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif /* !Py_AST_H */