11 /* Public interface */
12 struct _node
; /* Declare the existence of this type */
13 PyAPI_FUNC(PyCodeObject
*) PyNode_Compile(struct _node
*, const char *);
15 /* Future feature support */
18 int ff_features
; /* flags set by future statements */
19 int ff_lineno
; /* line number of last future statement */
22 #define FUTURE_NESTED_SCOPES "nested_scopes"
23 #define FUTURE_GENERATORS "generators"
24 #define FUTURE_DIVISION "division"
25 #define FUTURE_ABSOLUTE_IMPORT "absolute_import"
26 #define FUTURE_WITH_STATEMENT "with_statement"
28 struct _mod
; /* Declare the existence of this type */
29 PyAPI_FUNC(PyCodeObject
*) PyAST_Compile(struct _mod
*, const char *,
30 PyCompilerFlags
*, PyArena
*);
31 PyAPI_FUNC(PyFutureFeatures
*) PyFuture_FromAST(struct _mod
*, const char *);
33 #define ERR_LATE_FUTURE \
34 "from __future__ imports must occur at the beginning of the file"
39 #endif /* !Py_COMPILE_H */