Back to index

python3.2  3.2.2
symbol.py
Go to the documentation of this file.
00001 #! /usr/bin/env python3
00002 
00003 """Non-terminal symbols of Python grammar (from "graminit.h")."""
00004 
00005 #  This file is automatically generated; please don't muck it up!
00006 #
00007 #  To update the symbols in this file, 'cd' to the top directory of
00008 #  the python source tree after building the interpreter and run:
00009 #
00010 #    python Lib/symbol.py
00011 
00012 #--start constants--
00013 single_input = 256
00014 file_input = 257
00015 eval_input = 258
00016 decorator = 259
00017 decorators = 260
00018 decorated = 261
00019 funcdef = 262
00020 parameters = 263
00021 typedargslist = 264
00022 tfpdef = 265
00023 varargslist = 266
00024 vfpdef = 267
00025 stmt = 268
00026 simple_stmt = 269
00027 small_stmt = 270
00028 expr_stmt = 271
00029 testlist_star_expr = 272
00030 augassign = 273
00031 del_stmt = 274
00032 pass_stmt = 275
00033 flow_stmt = 276
00034 break_stmt = 277
00035 continue_stmt = 278
00036 return_stmt = 279
00037 yield_stmt = 280
00038 raise_stmt = 281
00039 import_stmt = 282
00040 import_name = 283
00041 import_from = 284
00042 import_as_name = 285
00043 dotted_as_name = 286
00044 import_as_names = 287
00045 dotted_as_names = 288
00046 dotted_name = 289
00047 global_stmt = 290
00048 nonlocal_stmt = 291
00049 assert_stmt = 292
00050 compound_stmt = 293
00051 if_stmt = 294
00052 while_stmt = 295
00053 for_stmt = 296
00054 try_stmt = 297
00055 with_stmt = 298
00056 with_item = 299
00057 except_clause = 300
00058 suite = 301
00059 test = 302
00060 test_nocond = 303
00061 lambdef = 304
00062 lambdef_nocond = 305
00063 or_test = 306
00064 and_test = 307
00065 not_test = 308
00066 comparison = 309
00067 comp_op = 310
00068 star_expr = 311
00069 expr = 312
00070 xor_expr = 313
00071 and_expr = 314
00072 shift_expr = 315
00073 arith_expr = 316
00074 term = 317
00075 factor = 318
00076 power = 319
00077 atom = 320
00078 testlist_comp = 321
00079 trailer = 322
00080 subscriptlist = 323
00081 subscript = 324
00082 sliceop = 325
00083 exprlist = 326
00084 testlist = 327
00085 dictorsetmaker = 328
00086 classdef = 329
00087 arglist = 330
00088 argument = 331
00089 comp_iter = 332
00090 comp_for = 333
00091 comp_if = 334
00092 encoding_decl = 335
00093 yield_expr = 336
00094 #--end constants--
00095 
00096 sym_name = {}
00097 for _name, _value in list(globals().items()):
00098     if type(_value) is type(0):
00099         sym_name[_value] = _name
00100 
00101 
00102 def main():
00103     import sys
00104     import token
00105     if len(sys.argv) == 1:
00106         sys.argv = sys.argv + ["Include/graminit.h", "Lib/symbol.py"]
00107     token.main()
00108 
00109 if __name__ == "__main__":
00110     main()