Zackery Spytz | 421a72a | 2019-09-12 03:27:14 -0600 | [diff] [blame] | 1 | #ifndef Py_LIMITED_API |
Jeremy Hylton | 3e0055f | 2005-10-20 19:59:25 +0000 | [diff] [blame] | 2 | #ifndef Py_AST_H |
| 3 | #define Py_AST_H |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Victor Stinner | 5f2df88 | 2018-11-12 00:56:19 +0100 | [diff] [blame] | 8 | #include "Python-ast.h" /* mod_ty */ |
Victor Stinner | 5f2df88 | 2018-11-12 00:56:19 +0100 | [diff] [blame] | 9 | |
Benjamin Peterson | 832bfe2 | 2011-08-09 16:15:04 -0500 | [diff] [blame] | 10 | PyAPI_FUNC(int) PyAST_Validate(mod_ty); |
Jeremy Hylton | 3e0055f | 2005-10-20 19:59:25 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 95e4d58 | 2018-01-26 08:20:18 -0800 | [diff] [blame] | 12 | /* _PyAST_ExprAsUnicode is defined in ast_unparse.c */ |
Serhiy Storchaka | 64fddc4 | 2018-05-17 06:17:48 +0300 | [diff] [blame] | 13 | PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty); |
Guido van Rossum | 95e4d58 | 2018-01-26 08:20:18 -0800 | [diff] [blame] | 14 | |
Serhiy Storchaka | 143ce5c | 2018-05-30 10:56:16 +0300 | [diff] [blame] | 15 | /* Return the borrowed reference to the first literal string in the |
Min ho Kim | c4cacc8 | 2019-07-31 08:16:13 +1000 | [diff] [blame] | 16 | sequence of statements or NULL if it doesn't start from a literal string. |
Serhiy Storchaka | 143ce5c | 2018-05-30 10:56:16 +0300 | [diff] [blame] | 17 | Doesn't set exception. */ |
Pablo Galindo | a5634c4 | 2020-09-16 19:42:00 +0100 | [diff] [blame] | 18 | PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_stmt_seq *); |
Serhiy Storchaka | 143ce5c | 2018-05-30 10:56:16 +0300 | [diff] [blame] | 19 | |
Jeremy Hylton | 3e0055f | 2005-10-20 19:59:25 +0000 | [diff] [blame] | 20 | #ifdef __cplusplus |
| 21 | } |
| 22 | #endif |
| 23 | #endif /* !Py_AST_H */ |
Zackery Spytz | 421a72a | 2019-09-12 03:27:14 -0600 | [diff] [blame] | 24 | #endif /* !Py_LIMITED_API */ |