Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/cpython
Path: blob/main/Include/internal/pycore_ast_state.h
12 views
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 *ParamSpec_type;
122
PyObject *Pass_type;
123
PyObject *Pow_singleton;
124
PyObject *Pow_type;
125
PyObject *RShift_singleton;
126
PyObject *RShift_type;
127
PyObject *Raise_type;
128
PyObject *Return_type;
129
PyObject *SetComp_type;
130
PyObject *Set_type;
131
PyObject *Slice_type;
132
PyObject *Starred_type;
133
PyObject *Store_singleton;
134
PyObject *Store_type;
135
PyObject *Sub_singleton;
136
PyObject *Sub_type;
137
PyObject *Subscript_type;
138
PyObject *TryStar_type;
139
PyObject *Try_type;
140
PyObject *Tuple_type;
141
PyObject *TypeAlias_type;
142
PyObject *TypeIgnore_type;
143
PyObject *TypeVarTuple_type;
144
PyObject *TypeVar_type;
145
PyObject *UAdd_singleton;
146
PyObject *UAdd_type;
147
PyObject *USub_singleton;
148
PyObject *USub_type;
149
PyObject *UnaryOp_type;
150
PyObject *While_type;
151
PyObject *With_type;
152
PyObject *YieldFrom_type;
153
PyObject *Yield_type;
154
PyObject *__dict__;
155
PyObject *__doc__;
156
PyObject *__match_args__;
157
PyObject *__module__;
158
PyObject *_attributes;
159
PyObject *_fields;
160
PyObject *alias_type;
161
PyObject *annotation;
162
PyObject *arg;
163
PyObject *arg_type;
164
PyObject *args;
165
PyObject *argtypes;
166
PyObject *arguments_type;
167
PyObject *asname;
168
PyObject *ast;
169
PyObject *attr;
170
PyObject *bases;
171
PyObject *body;
172
PyObject *boolop_type;
173
PyObject *bound;
174
PyObject *cases;
175
PyObject *cause;
176
PyObject *cls;
177
PyObject *cmpop_type;
178
PyObject *col_offset;
179
PyObject *comparators;
180
PyObject *comprehension_type;
181
PyObject *context_expr;
182
PyObject *conversion;
183
PyObject *ctx;
184
PyObject *decorator_list;
185
PyObject *defaults;
186
PyObject *elt;
187
PyObject *elts;
188
PyObject *end_col_offset;
189
PyObject *end_lineno;
190
PyObject *exc;
191
PyObject *excepthandler_type;
192
PyObject *expr_context_type;
193
PyObject *expr_type;
194
PyObject *finalbody;
195
PyObject *format_spec;
196
PyObject *func;
197
PyObject *generators;
198
PyObject *guard;
199
PyObject *handlers;
200
PyObject *id;
201
PyObject *ifs;
202
PyObject *is_async;
203
PyObject *items;
204
PyObject *iter;
205
PyObject *key;
206
PyObject *keys;
207
PyObject *keyword_type;
208
PyObject *keywords;
209
PyObject *kind;
210
PyObject *kw_defaults;
211
PyObject *kwarg;
212
PyObject *kwd_attrs;
213
PyObject *kwd_patterns;
214
PyObject *kwonlyargs;
215
PyObject *left;
216
PyObject *level;
217
PyObject *lineno;
218
PyObject *lower;
219
PyObject *match_case_type;
220
PyObject *mod_type;
221
PyObject *module;
222
PyObject *msg;
223
PyObject *name;
224
PyObject *names;
225
PyObject *op;
226
PyObject *operand;
227
PyObject *operator_type;
228
PyObject *ops;
229
PyObject *optional_vars;
230
PyObject *orelse;
231
PyObject *pattern;
232
PyObject *pattern_type;
233
PyObject *patterns;
234
PyObject *posonlyargs;
235
PyObject *rest;
236
PyObject *returns;
237
PyObject *right;
238
PyObject *simple;
239
PyObject *slice;
240
PyObject *step;
241
PyObject *stmt_type;
242
PyObject *subject;
243
PyObject *tag;
244
PyObject *target;
245
PyObject *targets;
246
PyObject *test;
247
PyObject *type;
248
PyObject *type_comment;
249
PyObject *type_ignore_type;
250
PyObject *type_ignores;
251
PyObject *type_param_type;
252
PyObject *type_params;
253
PyObject *unaryop_type;
254
PyObject *upper;
255
PyObject *value;
256
PyObject *values;
257
PyObject *vararg;
258
PyObject *withitem_type;
259
};
260
261
#ifdef __cplusplus
262
}
263
#endif
264
#endif /* !Py_INTERNAL_AST_STATE_H */
265
266
267