2021-08-08 04:08:33 +00:00
|
|
|
#ifndef Py_AST_H
|
|
|
|
#define Py_AST_H
|
2021-08-12 07:42:14 +00:00
|
|
|
#include "third_party/python/Include/Python-ast.h"
|
|
|
|
#include "third_party/python/Include/node.h"
|
|
|
|
#include "third_party/python/Include/pythonrun.h"
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2021-08-08 04:08:33 +00:00
|
|
|
|
2021-08-10 17:26:13 +00:00
|
|
|
extern int foo;
|
2021-08-12 07:42:14 +00:00
|
|
|
int PyAST_Validate(mod_ty);
|
|
|
|
mod_ty PyAST_FromNode(
|
2021-08-08 04:08:33 +00:00
|
|
|
const node *n,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
const char *filename, /* decoded from the filesystem encoding */
|
|
|
|
PyArena *arena);
|
2021-08-12 07:42:14 +00:00
|
|
|
mod_ty PyAST_FromNodeObject(
|
2021-08-08 04:08:33 +00:00
|
|
|
const node *n,
|
|
|
|
PyCompilerFlags *flags,
|
|
|
|
PyObject *filename,
|
|
|
|
PyArena *arena);
|
|
|
|
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif /* !Py_AST_H */
|