blob: 36f178a7eedd9c951e18a86dfa2de3d2e0ae2538 [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
Guido van Rossum154a5391996-07-21 02:17:52 +000024dotted_name = 277
25global_stmt = 278
26access_stmt = 279
27accesstype = 280
28exec_stmt = 281
29compound_stmt = 282
30if_stmt = 283
31while_stmt = 284
32for_stmt = 285
33try_stmt = 286
34except_clause = 287
35suite = 288
36test = 289
37and_test = 290
38not_test = 291
39comparison = 292
40comp_op = 293
41expr = 294
42xor_expr = 295
43and_expr = 296
44shift_expr = 297
45arith_expr = 298
46term = 299
47factor = 300
48power = 301
49atom = 302
50lambdef = 303
51trailer = 304
52subscript = 305
53exprlist = 306
54testlist = 307
55dictmaker = 308
56classdef = 309
57arglist = 310
58argument = 311
Guido van Rossumb31c7f71993-11-11 10:31:23 +000059
60names = dir()
61sym_name = {}
62for name in names:
Guido van Rossum154a5391996-07-21 02:17:52 +000063 number = eval(name)
64 if type(number) is type(0):
Guido van Rossumb31c7f71993-11-11 10:31:23 +000065 sym_name[number] = name