blob: 5bc2b05b3e945a6e8b9d0ce2dd806393e4fece26 [file] [log] [blame]
Jeremy Hylton3e0055f2005-10-20 19:59:25 +00001#ifndef Py_AST_H
2#define Py_AST_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Benjamin Peterson832bfe22011-08-09 16:15:04 -05007PyAPI_FUNC(int) PyAST_Validate(mod_ty);
Victor Stinner00676d12010-12-27 01:49:31 +00008PyAPI_FUNC(mod_ty) PyAST_FromNode(
9 const node *n,
10 PyCompilerFlags *flags,
11 const char *filename, /* decoded from the filesystem encoding */
12 PyArena *arena);
Victor Stinner14e461d2013-08-26 22:28:21 +020013PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
14 const node *n,
15 PyCompilerFlags *flags,
16 PyObject *filename,
17 PyArena *arena);
Jeremy Hylton3e0055f2005-10-20 19:59:25 +000018
Guido van Rossum95e4d582018-01-26 08:20:18 -080019#ifndef Py_LIMITED_API
20
21/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
Serhiy Storchakab32f8892018-05-20 18:06:08 +030022PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
Guido van Rossum95e4d582018-01-26 08:20:18 -080023
24#endif /* !Py_LIMITED_API */
25
Jeremy Hylton3e0055f2005-10-20 19:59:25 +000026#ifdef __cplusplus
27}
28#endif
29#endif /* !Py_AST_H */