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