The 0.5 release happened on 2/15, not on 2/14. :-)
[python/dscho.git] / Lib / symbol.py
blob8278b222cb79461f5d5613a06737c8ce91381b8f
1 #! /usr/bin/env python
3 """Non-terminal symbols of Python grammar (from "graminit.h")."""
5 # This file is automatically generated; please don't muck it up!
7 # To update the symbols in this file, 'cd' to the top directory of
8 # the python source tree after building the interpreter and run:
10 # python Lib/symbol.py
12 #--start constants--
13 single_input = 256
14 file_input = 257
15 eval_input = 258
16 funcdef = 259
17 parameters = 260
18 varargslist = 261
19 fpdef = 262
20 fplist = 263
21 stmt = 264
22 simple_stmt = 265
23 small_stmt = 266
24 expr_stmt = 267
25 print_stmt = 268
26 del_stmt = 269
27 pass_stmt = 270
28 flow_stmt = 271
29 break_stmt = 272
30 continue_stmt = 273
31 return_stmt = 274
32 raise_stmt = 275
33 import_stmt = 276
34 dotted_name = 277
35 global_stmt = 278
36 exec_stmt = 279
37 assert_stmt = 280
38 compound_stmt = 281
39 if_stmt = 282
40 while_stmt = 283
41 for_stmt = 284
42 try_stmt = 285
43 except_clause = 286
44 suite = 287
45 test = 288
46 and_test = 289
47 not_test = 290
48 comparison = 291
49 comp_op = 292
50 expr = 293
51 xor_expr = 294
52 and_expr = 295
53 shift_expr = 296
54 arith_expr = 297
55 term = 298
56 factor = 299
57 power = 300
58 atom = 301
59 lambdef = 302
60 trailer = 303
61 subscriptlist = 304
62 subscript = 305
63 sliceop = 306
64 exprlist = 307
65 testlist = 308
66 dictmaker = 309
67 classdef = 310
68 arglist = 311
69 argument = 312
70 #--end constants--
72 sym_name = {}
73 for _name, _value in globals().items():
74 if type(_value) is type(0):
75 sym_name[_value] = _name
78 def main():
79 import sys
80 import token
81 if len(sys.argv) == 1:
82 sys.argv = sys.argv + ["Include/graminit.h", "Lib/symbol.py"]
83 token.main()
85 if __name__ == "__main__":
86 main()