File: ast.h

package info (click to toggle)
python3-typed-ast 1.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,728 kB
  • sloc: ansic: 31,662; python: 4,185; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef Ta3_AST_H
#define Ta3_AST_H
#ifdef __cplusplus
extern "C" {
#endif

extern int Ta3AST_Validate(mod_ty);
extern mod_ty Ta3AST_FromNode(
    const node *n,
    PyCompilerFlags *flags,
    const char *filename,       /* decoded from the filesystem encoding */
    int feature_version,
    PyArena *arena);
extern mod_ty Ta3AST_FromNodeObject(
    const node *n,
    PyCompilerFlags *flags,
    PyObject *filename,
    int feature_version,
    PyArena *arena);

#ifndef Py_LIMITED_API

/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
extern PyObject * _PyAST_ExprAsUnicode(expr_ty);

#endif /* !Py_LIMITED_API */

#ifdef __cplusplus
}
#endif
#endif /* !Ta3_AST_H */