| 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 *Interpolation_type; |
| 79 |
PyObject *Invert_singleton; |
| 80 |
PyObject *Invert_type; |
| 81 |
PyObject *IsNot_singleton; |
| 82 |
PyObject *IsNot_type; |
| 83 |
PyObject *Is_singleton; |
| 84 |
PyObject *Is_type; |
| 85 |
PyObject *JoinedStr_type; |
| 86 |
PyObject *LShift_singleton; |
| 87 |
PyObject *LShift_type; |
| 88 |
PyObject *Lambda_type; |
| 89 |
PyObject *ListComp_type; |
| 90 |
PyObject *List_type; |
| 91 |
PyObject *Load_singleton; |
| 92 |
PyObject *Load_type; |
| 93 |
PyObject *LtE_singleton; |
| 94 |
PyObject *LtE_type; |
| 95 |
PyObject *Lt_singleton; |
| 96 |
PyObject *Lt_type; |
| 97 |
PyObject *MatMult_singleton; |
| 98 |
PyObject *MatMult_type; |
| 99 |
PyObject *MatchAs_type; |
| 100 |
PyObject *MatchClass_type; |
| 101 |
PyObject *MatchMapping_type; |
| 102 |
PyObject *MatchOr_type; |
| 103 |
PyObject *MatchSequence_type; |
| 104 |
PyObject *MatchSingleton_type; |
| 105 |
PyObject *MatchStar_type; |
| 106 |
PyObject *MatchValue_type; |
| 107 |
PyObject *Match_type; |
| 108 |
PyObject *Mod_singleton; |
| 109 |
PyObject *Mod_type; |
| 110 |
PyObject *Module_type; |
| 111 |
PyObject *Mult_singleton; |
| 112 |
PyObject *Mult_type; |
| 113 |
PyObject *Name_type; |
| 114 |
PyObject *NamedExpr_type; |
| 115 |
PyObject *Nonlocal_type; |
| 116 |
PyObject *NotEq_singleton; |
| 117 |
PyObject *NotEq_type; |
| 118 |
PyObject *NotIn_singleton; |
| 119 |
PyObject *NotIn_type; |
| 120 |
PyObject *Not_singleton; |
| 121 |
PyObject *Not_type; |
| 122 |
PyObject *Or_singleton; |
| 123 |
PyObject *Or_type; |
| 124 |
PyObject *ParamSpec_type; |
| 125 |
PyObject *Pass_type; |
| 126 |
PyObject *Pow_singleton; |
| 127 |
PyObject *Pow_type; |
| 128 |
PyObject *RShift_singleton; |
| 129 |
PyObject *RShift_type; |
| 130 |
PyObject *Raise_type; |
| 131 |
PyObject *Return_type; |
| 132 |
PyObject *SetComp_type; |
| 133 |
PyObject *Set_type; |
| 134 |
PyObject *Slice_type; |
| 135 |
PyObject *Starred_type; |
| 136 |
PyObject *Store_singleton; |
| 137 |
PyObject *Store_type; |
| 138 |
PyObject *Sub_singleton; |
| 139 |
PyObject *Sub_type; |
| 140 |
PyObject *Subscript_type; |
| 141 |
PyObject *TemplateStr_type; |
| 142 |
PyObject *TryStar_type; |
| 143 |
PyObject *Try_type; |
| 144 |
PyObject *Tuple_type; |
| 145 |
PyObject *TypeAlias_type; |
| 146 |
PyObject *TypeIgnore_type; |
| 147 |
PyObject *TypeVarTuple_type; |
| 148 |
PyObject *TypeVar_type; |
| 149 |
PyObject *UAdd_singleton; |
| 150 |
PyObject *UAdd_type; |
| 151 |
PyObject *USub_singleton; |
| 152 |
PyObject *USub_type; |
| 153 |
PyObject *UnaryOp_type; |
| 154 |
PyObject *While_type; |
| 155 |
PyObject *With_type; |
| 156 |
PyObject *YieldFrom_type; |
| 157 |
PyObject *Yield_type; |
| 158 |
PyObject *__dict__; |
| 159 |
PyObject *__doc__; |
| 160 |
PyObject *__match_args__; |
| 161 |
PyObject *__module__; |
| 162 |
PyObject *_attributes; |
| 163 |
PyObject *_fields; |
| 164 |
PyObject *alias_type; |
| 165 |
PyObject *annotation; |
| 166 |
PyObject *arg; |
| 167 |
PyObject *arg_type; |
| 168 |
PyObject *args; |
| 169 |
PyObject *argtypes; |
| 170 |
PyObject *arguments_type; |
| 171 |
PyObject *asname; |
| 172 |
PyObject *ast; |
| 173 |
PyObject *attr; |
| 174 |
PyObject *bases; |
| 175 |
PyObject *body; |
| 176 |
PyObject *boolop_type; |
| 177 |
PyObject *bound; |
| 178 |
PyObject *cases; |
| 179 |
PyObject *cause; |
| 180 |
PyObject *cls; |
| 181 |
PyObject *cmpop_type; |
| 182 |
PyObject *col_offset; |
| 183 |
PyObject *comparators; |
| 184 |
PyObject *comprehension_type; |
| 185 |
PyObject *context_expr; |
| 186 |
PyObject *conversion; |
| 187 |
PyObject *ctx; |
| 188 |
PyObject *decorator_list; |
| 189 |
PyObject *default_value; |
| 190 |
PyObject *defaults; |
| 191 |
PyObject *elt; |
| 192 |
PyObject *elts; |
| 193 |
PyObject *end_col_offset; |
| 194 |
PyObject *end_lineno; |
| 195 |
PyObject *exc; |
| 196 |
PyObject *excepthandler_type; |
| 197 |
PyObject *expr_context_type; |
| 198 |
PyObject *expr_type; |
| 199 |
PyObject *finalbody; |
| 200 |
PyObject *format_spec; |
| 201 |
PyObject *func; |
| 202 |
PyObject *generators; |
| 203 |
PyObject *guard; |
| 204 |
PyObject *handlers; |
| 205 |
PyObject *id; |
| 206 |
PyObject *ifs; |
| 207 |
PyObject *is_async; |
| 208 |
PyObject *items; |
| 209 |
PyObject *iter; |
| 210 |
PyObject *key; |
| 211 |
PyObject *keys; |
| 212 |
PyObject *keyword_type; |
| 213 |
PyObject *keywords; |
| 214 |
PyObject *kind; |
| 215 |
PyObject *kw_defaults; |
| 216 |
PyObject *kwarg; |
| 217 |
PyObject *kwd_attrs; |
| 218 |
PyObject *kwd_patterns; |
| 219 |
PyObject *kwonlyargs; |
| 220 |
PyObject *left; |
| 221 |
PyObject *level; |
| 222 |
PyObject *lineno; |
| 223 |
PyObject *lower; |
| 224 |
PyObject *match_case_type; |
| 225 |
PyObject *mod_type; |
| 226 |
PyObject *module; |
| 227 |
PyObject *msg; |
| 228 |
PyObject *name; |
| 229 |
PyObject *names; |
| 230 |
PyObject *op; |
| 231 |
PyObject *operand; |
| 232 |
PyObject *operator_type; |
| 233 |
PyObject *ops; |
| 234 |
PyObject *optional_vars; |
| 235 |
PyObject *orelse; |
| 236 |
PyObject *pattern; |
| 237 |
PyObject *pattern_type; |
| 238 |
PyObject *patterns; |
| 239 |
PyObject *posonlyargs; |
| 240 |
PyObject *rest; |
| 241 |
PyObject *returns; |
| 242 |
PyObject *right; |
| 243 |
PyObject *simple; |
| 244 |
PyObject *slice; |
| 245 |
PyObject *step; |
| 246 |
PyObject *stmt_type; |
| 247 |
PyObject *str; |
| 248 |
PyObject *subject; |
| 249 |
PyObject *tag; |
| 250 |
PyObject *target; |
| 251 |
PyObject *targets; |
| 252 |
PyObject *test; |
| 253 |
PyObject *type; |
| 254 |
PyObject *type_comment; |
| 255 |
PyObject *type_ignore_type; |
| 256 |
PyObject *type_ignores; |
| 257 |
PyObject *type_param_type; |
| 258 |
PyObject *type_params; |
| 259 |
PyObject *unaryop_type; |
| 260 |
PyObject *upper; |
| 261 |
PyObject *value; |
| 262 |
PyObject *values; |
| 263 |
PyObject *vararg; |
| 264 |
PyObject *withitem_type; |
| 265 |
}; |
| 266 |
|
| 267 |
#ifdef __cplusplus |
| 268 |
} |
| 269 |
#endif |
| 270 |
#endif /* !Py_INTERNAL_AST_STATE_H */ |
| 271 |
|