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