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