You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#! /usr/bin/env python3
"""Non-terminal symbols of Python grammar (from "graminit.h")."""
# This file is automatically generated; please don't muck it up!## To update the symbols in this file, 'cd' to the top directory of# the python source tree after building the interpreter and run:## ./python Lib/symbol.py
#--start constants--single_input = 256file_input = 257eval_input = 258decorator = 259decorators = 260decorated = 261async_funcdef = 262funcdef = 263parameters = 264typedargslist = 265tfpdef = 266varargslist = 267vfpdef = 268stmt = 269simple_stmt = 270small_stmt = 271expr_stmt = 272annassign = 273testlist_star_expr = 274augassign = 275del_stmt = 276pass_stmt = 277flow_stmt = 278break_stmt = 279continue_stmt = 280return_stmt = 281yield_stmt = 282raise_stmt = 283import_stmt = 284import_name = 285import_from = 286import_as_name = 287dotted_as_name = 288import_as_names = 289dotted_as_names = 290dotted_name = 291global_stmt = 292nonlocal_stmt = 293assert_stmt = 294compound_stmt = 295async_stmt = 296if_stmt = 297while_stmt = 298for_stmt = 299try_stmt = 300with_stmt = 301with_item = 302except_clause = 303suite = 304test = 305test_nocond = 306lambdef = 307lambdef_nocond = 308or_test = 309and_test = 310not_test = 311comparison = 312comp_op = 313star_expr = 314expr = 315xor_expr = 316and_expr = 317shift_expr = 318arith_expr = 319term = 320factor = 321power = 322atom_expr = 323atom = 324testlist_comp = 325trailer = 326subscriptlist = 327subscript = 328sliceop = 329exprlist = 330testlist = 331dictorsetmaker = 332classdef = 333arglist = 334argument = 335comp_iter = 336comp_for = 337comp_if = 338encoding_decl = 339yield_expr = 340yield_arg = 341#--end constants--
sym_name = {}for _name, _value in list(globals().items()): if type(_value) is type(0): sym_name[_value] = _name
def _main(): import sys import token if len(sys.argv) == 1: sys.argv = sys.argv + ["Include/graminit.h", "Lib/symbol.py"] token._main()
if __name__ == "__main__": _main()
|