mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Changes for new parser module (Fred Drake)
This commit is contained in:
parent
6e21cebfbb
commit
154a539460
3 changed files with 276 additions and 37 deletions
|
@ -21,40 +21,45 @@ continue_stmt = 273
|
|||
return_stmt = 274
|
||||
raise_stmt = 275
|
||||
import_stmt = 276
|
||||
global_stmt = 277
|
||||
access_stmt = 278
|
||||
accesstype = 279
|
||||
exec_stmt = 280
|
||||
compound_stmt = 281
|
||||
if_stmt = 282
|
||||
while_stmt = 283
|
||||
for_stmt = 284
|
||||
try_stmt = 285
|
||||
except_clause = 286
|
||||
suite = 287
|
||||
test = 288
|
||||
and_test = 289
|
||||
not_test = 290
|
||||
comparison = 291
|
||||
comp_op = 292
|
||||
expr = 293
|
||||
xor_expr = 294
|
||||
and_expr = 295
|
||||
shift_expr = 296
|
||||
arith_expr = 297
|
||||
term = 298
|
||||
factor = 299
|
||||
atom = 300
|
||||
lambdef = 301
|
||||
trailer = 302
|
||||
subscript = 303
|
||||
exprlist = 304
|
||||
testlist = 305
|
||||
dictmaker = 306
|
||||
classdef = 307
|
||||
dotted_name = 277
|
||||
global_stmt = 278
|
||||
access_stmt = 279
|
||||
accesstype = 280
|
||||
exec_stmt = 281
|
||||
compound_stmt = 282
|
||||
if_stmt = 283
|
||||
while_stmt = 284
|
||||
for_stmt = 285
|
||||
try_stmt = 286
|
||||
except_clause = 287
|
||||
suite = 288
|
||||
test = 289
|
||||
and_test = 290
|
||||
not_test = 291
|
||||
comparison = 292
|
||||
comp_op = 293
|
||||
expr = 294
|
||||
xor_expr = 295
|
||||
and_expr = 296
|
||||
shift_expr = 297
|
||||
arith_expr = 298
|
||||
term = 299
|
||||
factor = 300
|
||||
power = 301
|
||||
atom = 302
|
||||
lambdef = 303
|
||||
trailer = 304
|
||||
subscript = 305
|
||||
exprlist = 306
|
||||
testlist = 307
|
||||
dictmaker = 308
|
||||
classdef = 309
|
||||
arglist = 310
|
||||
argument = 311
|
||||
|
||||
names = dir()
|
||||
sym_name = {}
|
||||
for name in names:
|
||||
number = eval(name)
|
||||
number = eval(name)
|
||||
if type(number) is type(0):
|
||||
sym_name[number] = name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue