1"""Non-terminal symbols of Python grammar (from "graminit.h").""" 2 3# This file is automatically generated; please don't muck it up! 4# 5# To update the symbols in this file, 'cd' to the top directory of 6# the python source tree after building the interpreter and run: 7# 8# python3 Tools/scripts/generate_symbol_py.py Include/graminit.h Lib/symbol.py 9# 10# or just 11# 12# make regen-symbol 13 14#--start constants-- 15single_input = 256 16file_input = 257 17eval_input = 258 18decorator = 259 19decorators = 260 20decorated = 261 21async_funcdef = 262 22funcdef = 263 23parameters = 264 24typedargslist = 265 25tfpdef = 266 26varargslist = 267 27vfpdef = 268 28stmt = 269 29simple_stmt = 270 30small_stmt = 271 31expr_stmt = 272 32annassign = 273 33testlist_star_expr = 274 34augassign = 275 35del_stmt = 276 36pass_stmt = 277 37flow_stmt = 278 38break_stmt = 279 39continue_stmt = 280 40return_stmt = 281 41yield_stmt = 282 42raise_stmt = 283 43import_stmt = 284 44import_name = 285 45import_from = 286 46import_as_name = 287 47dotted_as_name = 288 48import_as_names = 289 49dotted_as_names = 290 50dotted_name = 291 51global_stmt = 292 52nonlocal_stmt = 293 53assert_stmt = 294 54compound_stmt = 295 55async_stmt = 296 56if_stmt = 297 57while_stmt = 298 58for_stmt = 299 59try_stmt = 300 60with_stmt = 301 61with_item = 302 62except_clause = 303 63suite = 304 64namedexpr_test = 305 65test = 306 66test_nocond = 307 67lambdef = 308 68lambdef_nocond = 309 69or_test = 310 70and_test = 311 71not_test = 312 72comparison = 313 73comp_op = 314 74star_expr = 315 75expr = 316 76xor_expr = 317 77and_expr = 318 78shift_expr = 319 79arith_expr = 320 80term = 321 81factor = 322 82power = 323 83atom_expr = 324 84atom = 325 85testlist_comp = 326 86trailer = 327 87subscriptlist = 328 88subscript = 329 89sliceop = 330 90exprlist = 331 91testlist = 332 92dictorsetmaker = 333 93classdef = 334 94arglist = 335 95argument = 336 96comp_iter = 337 97sync_comp_for = 338 98comp_for = 339 99comp_if = 340 100encoding_decl = 341 101yield_expr = 342 102yield_arg = 343 103func_body_suite = 344 104func_type_input = 345 105func_type = 346 106typelist = 347 107#--end constants-- 108 109sym_name = {} 110for _name, _value in list(globals().items()): 111 if type(_value) is type(0): 112 sym_name[_value] = _name 113del _name, _value 114