blob: 434ee18dd91b2a7a5c6463c3299390c4b2fb5f5b [file] [log] [blame]
Zackery Spytz421a72a2019-09-12 03:27:14 -06001#ifndef Py_LIMITED_API
Jeremy Hylton3e0055f2005-10-20 19:59:25 +00002#ifndef Py_AST_H
3#define Py_AST_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Victor Stinner5f2df882018-11-12 00:56:19 +01008#include "Python-ast.h" /* mod_ty */
Victor Stinner5f2df882018-11-12 00:56:19 +01009
Benjamin Peterson832bfe22011-08-09 16:15:04 -050010PyAPI_FUNC(int) PyAST_Validate(mod_ty);
Jeremy Hylton3e0055f2005-10-20 19:59:25 +000011
Guido van Rossum95e4d582018-01-26 08:20:18 -080012/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
Serhiy Storchaka64fddc42018-05-17 06:17:48 +030013PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
Guido van Rossum95e4d582018-01-26 08:20:18 -080014
Serhiy Storchaka143ce5c2018-05-30 10:56:16 +030015/* Return the borrowed reference to the first literal string in the
Min ho Kimc4cacc82019-07-31 08:16:13 +100016 sequence of statements or NULL if it doesn't start from a literal string.
Serhiy Storchaka143ce5c2018-05-30 10:56:16 +030017 Doesn't set exception. */
Pablo Galindoa5634c42020-09-16 19:42:00 +010018PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_stmt_seq *);
Serhiy Storchaka143ce5c2018-05-30 10:56:16 +030019
Jeremy Hylton3e0055f2005-10-20 19:59:25 +000020#ifdef __cplusplus
21}
22#endif
23#endif /* !Py_AST_H */
Zackery Spytz421a72a2019-09-12 03:27:14 -060024#endif /* !Py_LIMITED_API */