Use py_resource module
[python/dscho.git] / Lib / symbol.py
blobf3ec122625e19b6b21a4e88f990c03f7bde687f9
1 # Non-terminal symbols of Python grammar (from "graminit.h")
3 single_input = 256
4 file_input = 257
5 eval_input = 258
6 funcdef = 259
7 parameters = 260
8 varargslist = 261
9 fpdef = 262
10 fplist = 263
11 stmt = 264
12 simple_stmt = 265
13 small_stmt = 266
14 expr_stmt = 267
15 print_stmt = 268
16 del_stmt = 269
17 pass_stmt = 270
18 flow_stmt = 271
19 break_stmt = 272
20 continue_stmt = 273
21 return_stmt = 274
22 raise_stmt = 275
23 import_stmt = 276
24 global_stmt = 277
25 access_stmt = 278
26 accesstype = 279
27 exec_stmt = 280
28 compound_stmt = 281
29 if_stmt = 282
30 while_stmt = 283
31 for_stmt = 284
32 try_stmt = 285
33 except_clause = 286
34 suite = 287
35 test = 288
36 and_test = 289
37 not_test = 290
38 comparison = 291
39 comp_op = 292
40 expr = 293
41 xor_expr = 294
42 and_expr = 295
43 shift_expr = 296
44 arith_expr = 297
45 term = 298
46 factor = 299
47 atom = 300
48 lambdef = 301
49 trailer = 302
50 subscript = 303
51 exprlist = 304
52 testlist = 305
53 dictmaker = 306
54 classdef = 307
56 names = dir()
57 sym_name = {}
58 for name in names:
59 number = eval(name)
60 sym_name[number] = name