• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // File automatically generated by Parser/asdl_c.py.
2 
3 #ifndef Py_INTERNAL_AST_STATE_H
4 #define Py_INTERNAL_AST_STATE_H
5 
6 #include "pycore_lock.h"    // _PyOnceFlag
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #ifndef Py_BUILD_CORE
13 #  error "this header requires Py_BUILD_CORE define"
14 #endif
15 
16 struct ast_state {
17     _PyOnceFlag once;
18     int finalized;
19     PyObject *AST_type;
20     PyObject *Add_singleton;
21     PyObject *Add_type;
22     PyObject *And_singleton;
23     PyObject *And_type;
24     PyObject *AnnAssign_type;
25     PyObject *Assert_type;
26     PyObject *Assign_type;
27     PyObject *AsyncFor_type;
28     PyObject *AsyncFunctionDef_type;
29     PyObject *AsyncWith_type;
30     PyObject *Attribute_type;
31     PyObject *AugAssign_type;
32     PyObject *Await_type;
33     PyObject *BinOp_type;
34     PyObject *BitAnd_singleton;
35     PyObject *BitAnd_type;
36     PyObject *BitOr_singleton;
37     PyObject *BitOr_type;
38     PyObject *BitXor_singleton;
39     PyObject *BitXor_type;
40     PyObject *BoolOp_type;
41     PyObject *Break_type;
42     PyObject *Call_type;
43     PyObject *ClassDef_type;
44     PyObject *Compare_type;
45     PyObject *Constant_type;
46     PyObject *Continue_type;
47     PyObject *Del_singleton;
48     PyObject *Del_type;
49     PyObject *Delete_type;
50     PyObject *DictComp_type;
51     PyObject *Dict_type;
52     PyObject *Div_singleton;
53     PyObject *Div_type;
54     PyObject *Eq_singleton;
55     PyObject *Eq_type;
56     PyObject *ExceptHandler_type;
57     PyObject *Expr_type;
58     PyObject *Expression_type;
59     PyObject *FloorDiv_singleton;
60     PyObject *FloorDiv_type;
61     PyObject *For_type;
62     PyObject *FormattedValue_type;
63     PyObject *FunctionDef_type;
64     PyObject *FunctionType_type;
65     PyObject *GeneratorExp_type;
66     PyObject *Global_type;
67     PyObject *GtE_singleton;
68     PyObject *GtE_type;
69     PyObject *Gt_singleton;
70     PyObject *Gt_type;
71     PyObject *IfExp_type;
72     PyObject *If_type;
73     PyObject *ImportFrom_type;
74     PyObject *Import_type;
75     PyObject *In_singleton;
76     PyObject *In_type;
77     PyObject *Interactive_type;
78     PyObject *Invert_singleton;
79     PyObject *Invert_type;
80     PyObject *IsNot_singleton;
81     PyObject *IsNot_type;
82     PyObject *Is_singleton;
83     PyObject *Is_type;
84     PyObject *JoinedStr_type;
85     PyObject *LShift_singleton;
86     PyObject *LShift_type;
87     PyObject *Lambda_type;
88     PyObject *ListComp_type;
89     PyObject *List_type;
90     PyObject *Load_singleton;
91     PyObject *Load_type;
92     PyObject *LtE_singleton;
93     PyObject *LtE_type;
94     PyObject *Lt_singleton;
95     PyObject *Lt_type;
96     PyObject *MatMult_singleton;
97     PyObject *MatMult_type;
98     PyObject *MatchAs_type;
99     PyObject *MatchClass_type;
100     PyObject *MatchMapping_type;
101     PyObject *MatchOr_type;
102     PyObject *MatchSequence_type;
103     PyObject *MatchSingleton_type;
104     PyObject *MatchStar_type;
105     PyObject *MatchValue_type;
106     PyObject *Match_type;
107     PyObject *Mod_singleton;
108     PyObject *Mod_type;
109     PyObject *Module_type;
110     PyObject *Mult_singleton;
111     PyObject *Mult_type;
112     PyObject *Name_type;
113     PyObject *NamedExpr_type;
114     PyObject *Nonlocal_type;
115     PyObject *NotEq_singleton;
116     PyObject *NotEq_type;
117     PyObject *NotIn_singleton;
118     PyObject *NotIn_type;
119     PyObject *Not_singleton;
120     PyObject *Not_type;
121     PyObject *Or_singleton;
122     PyObject *Or_type;
123     PyObject *ParamSpec_type;
124     PyObject *Pass_type;
125     PyObject *Pow_singleton;
126     PyObject *Pow_type;
127     PyObject *RShift_singleton;
128     PyObject *RShift_type;
129     PyObject *Raise_type;
130     PyObject *Return_type;
131     PyObject *SetComp_type;
132     PyObject *Set_type;
133     PyObject *Slice_type;
134     PyObject *Starred_type;
135     PyObject *Store_singleton;
136     PyObject *Store_type;
137     PyObject *Sub_singleton;
138     PyObject *Sub_type;
139     PyObject *Subscript_type;
140     PyObject *TryStar_type;
141     PyObject *Try_type;
142     PyObject *Tuple_type;
143     PyObject *TypeAlias_type;
144     PyObject *TypeIgnore_type;
145     PyObject *TypeVarTuple_type;
146     PyObject *TypeVar_type;
147     PyObject *UAdd_singleton;
148     PyObject *UAdd_type;
149     PyObject *USub_singleton;
150     PyObject *USub_type;
151     PyObject *UnaryOp_type;
152     PyObject *While_type;
153     PyObject *With_type;
154     PyObject *YieldFrom_type;
155     PyObject *Yield_type;
156     PyObject *__dict__;
157     PyObject *__doc__;
158     PyObject *__match_args__;
159     PyObject *__module__;
160     PyObject *_attributes;
161     PyObject *_fields;
162     PyObject *alias_type;
163     PyObject *annotation;
164     PyObject *arg;
165     PyObject *arg_type;
166     PyObject *args;
167     PyObject *argtypes;
168     PyObject *arguments_type;
169     PyObject *asname;
170     PyObject *ast;
171     PyObject *attr;
172     PyObject *bases;
173     PyObject *body;
174     PyObject *boolop_type;
175     PyObject *bound;
176     PyObject *cases;
177     PyObject *cause;
178     PyObject *cls;
179     PyObject *cmpop_type;
180     PyObject *col_offset;
181     PyObject *comparators;
182     PyObject *comprehension_type;
183     PyObject *context_expr;
184     PyObject *conversion;
185     PyObject *ctx;
186     PyObject *decorator_list;
187     PyObject *default_value;
188     PyObject *defaults;
189     PyObject *elt;
190     PyObject *elts;
191     PyObject *end_col_offset;
192     PyObject *end_lineno;
193     PyObject *exc;
194     PyObject *excepthandler_type;
195     PyObject *expr_context_type;
196     PyObject *expr_type;
197     PyObject *finalbody;
198     PyObject *format_spec;
199     PyObject *func;
200     PyObject *generators;
201     PyObject *guard;
202     PyObject *handlers;
203     PyObject *id;
204     PyObject *ifs;
205     PyObject *is_async;
206     PyObject *items;
207     PyObject *iter;
208     PyObject *key;
209     PyObject *keys;
210     PyObject *keyword_type;
211     PyObject *keywords;
212     PyObject *kind;
213     PyObject *kw_defaults;
214     PyObject *kwarg;
215     PyObject *kwd_attrs;
216     PyObject *kwd_patterns;
217     PyObject *kwonlyargs;
218     PyObject *left;
219     PyObject *level;
220     PyObject *lineno;
221     PyObject *lower;
222     PyObject *match_case_type;
223     PyObject *mod_type;
224     PyObject *module;
225     PyObject *msg;
226     PyObject *name;
227     PyObject *names;
228     PyObject *op;
229     PyObject *operand;
230     PyObject *operator_type;
231     PyObject *ops;
232     PyObject *optional_vars;
233     PyObject *orelse;
234     PyObject *pattern;
235     PyObject *pattern_type;
236     PyObject *patterns;
237     PyObject *posonlyargs;
238     PyObject *rest;
239     PyObject *returns;
240     PyObject *right;
241     PyObject *simple;
242     PyObject *slice;
243     PyObject *step;
244     PyObject *stmt_type;
245     PyObject *subject;
246     PyObject *tag;
247     PyObject *target;
248     PyObject *targets;
249     PyObject *test;
250     PyObject *type;
251     PyObject *type_comment;
252     PyObject *type_ignore_type;
253     PyObject *type_ignores;
254     PyObject *type_param_type;
255     PyObject *type_params;
256     PyObject *unaryop_type;
257     PyObject *upper;
258     PyObject *value;
259     PyObject *values;
260     PyObject *vararg;
261     PyObject *withitem_type;
262 };
263 
264 #ifdef __cplusplus
265 }
266 #endif
267 #endif /* !Py_INTERNAL_AST_STATE_H */
268 
269