PyXR

c:\python24\lib \ symbol.py



0001 #! /usr/bin/env python
0002 
0003 """Non-terminal symbols of Python grammar (from "graminit.h")."""
0004 
0005 #  This file is automatically generated; please don't muck it up!
0006 #
0007 #  To update the symbols in this file, 'cd' to the top directory of
0008 #  the python source tree after building the interpreter and run:
0009 #
0010 #    python Lib/symbol.py
0011 
0012 #--start constants--
0013 single_input = 256
0014 file_input = 257
0015 eval_input = 258
0016 decorator = 259
0017 decorators = 260
0018 funcdef = 261
0019 parameters = 262
0020 varargslist = 263
0021 fpdef = 264
0022 fplist = 265
0023 stmt = 266
0024 simple_stmt = 267
0025 small_stmt = 268
0026 expr_stmt = 269
0027 augassign = 270
0028 print_stmt = 271
0029 del_stmt = 272
0030 pass_stmt = 273
0031 flow_stmt = 274
0032 break_stmt = 275
0033 continue_stmt = 276
0034 return_stmt = 277
0035 yield_stmt = 278
0036 raise_stmt = 279
0037 import_stmt = 280
0038 import_name = 281
0039 import_from = 282
0040 import_as_name = 283
0041 dotted_as_name = 284
0042 import_as_names = 285
0043 dotted_as_names = 286
0044 dotted_name = 287
0045 global_stmt = 288
0046 exec_stmt = 289
0047 assert_stmt = 290
0048 compound_stmt = 291
0049 if_stmt = 292
0050 while_stmt = 293
0051 for_stmt = 294
0052 try_stmt = 295
0053 except_clause = 296
0054 suite = 297
0055 test = 298
0056 and_test = 299
0057 not_test = 300
0058 comparison = 301
0059 comp_op = 302
0060 expr = 303
0061 xor_expr = 304
0062 and_expr = 305
0063 shift_expr = 306
0064 arith_expr = 307
0065 term = 308
0066 factor = 309
0067 power = 310
0068 atom = 311
0069 listmaker = 312
0070 testlist_gexp = 313
0071 lambdef = 314
0072 trailer = 315
0073 subscriptlist = 316
0074 subscript = 317
0075 sliceop = 318
0076 exprlist = 319
0077 testlist = 320
0078 testlist_safe = 321
0079 dictmaker = 322
0080 classdef = 323
0081 arglist = 324
0082 argument = 325
0083 list_iter = 326
0084 list_for = 327
0085 list_if = 328
0086 gen_iter = 329
0087 gen_for = 330
0088 gen_if = 331
0089 testlist1 = 332
0090 encoding_decl = 333
0091 #--end constants--
0092 
0093 sym_name = {}
0094 for _name, _value in globals().items():
0095     if type(_value) is type(0):
0096         sym_name[_value] = _name
0097 
0098 
0099 def main():
0100     import sys
0101     import token
0102     if len(sys.argv) == 1:
0103         sys.argv = sys.argv + ["Include/graminit.h", "Lib/symbol.py"]
0104     token.main()
0105 
0106 if __name__ == "__main__":
0107     main()
0108 

Generated by PyXR 0.9.4
SourceForge.net Logo