Update for augmented assignment.

This commit is contained in:
Thomas Wouters 2000-08-24 21:08:39 +00:00
parent 104a7bcc28
commit 34052622c9
2 changed files with 66 additions and 54 deletions

View File

@ -22,57 +22,58 @@
simple_stmt = 265 simple_stmt = 265
small_stmt = 266 small_stmt = 266
expr_stmt = 267 expr_stmt = 267
print_stmt = 268 augassign = 268
del_stmt = 269 print_stmt = 269
pass_stmt = 270 del_stmt = 270
flow_stmt = 271 pass_stmt = 271
break_stmt = 272 flow_stmt = 272
continue_stmt = 273 break_stmt = 273
return_stmt = 274 continue_stmt = 274
raise_stmt = 275 return_stmt = 275
import_stmt = 276 raise_stmt = 276
import_as_name = 277 import_stmt = 277
dotted_as_name = 278 import_as_name = 278
dotted_name = 279 dotted_as_name = 279
global_stmt = 280 dotted_name = 280
exec_stmt = 281 global_stmt = 281
assert_stmt = 282 exec_stmt = 282
compound_stmt = 283 assert_stmt = 283
if_stmt = 284 compound_stmt = 284
while_stmt = 285 if_stmt = 285
for_stmt = 286 while_stmt = 286
try_stmt = 287 for_stmt = 287
except_clause = 288 try_stmt = 288
suite = 289 except_clause = 289
test = 290 suite = 290
and_test = 291 test = 291
not_test = 292 and_test = 292
comparison = 293 not_test = 293
comp_op = 294 comparison = 294
expr = 295 comp_op = 295
xor_expr = 296 expr = 296
and_expr = 297 xor_expr = 297
shift_expr = 298 and_expr = 298
arith_expr = 299 shift_expr = 299
term = 300 arith_expr = 300
factor = 301 term = 301
power = 302 factor = 302
atom = 303 power = 303
listmaker = 304 atom = 304
lambdef = 305 listmaker = 305
trailer = 306 lambdef = 306
subscriptlist = 307 trailer = 307
subscript = 308 subscriptlist = 308
sliceop = 309 subscript = 309
exprlist = 310 sliceop = 310
testlist = 311 exprlist = 311
dictmaker = 312 testlist = 312
classdef = 313 dictmaker = 313
arglist = 314 classdef = 314
argument = 315 arglist = 315
list_iter = 316 argument = 316
list_for = 317 list_iter = 317
list_if = 318 list_for = 318
list_if = 319
#--end constants-- #--end constants--
sym_name = {} sym_name = {}

View File

@ -47,9 +47,20 @@ CIRCUMFLEX = 33
LEFTSHIFT = 34 LEFTSHIFT = 34
RIGHTSHIFT = 35 RIGHTSHIFT = 35
DOUBLESTAR = 36 DOUBLESTAR = 36
OP = 37 PLUSEQUAL = 37
ERRORTOKEN = 38 MINEQUAL = 38
N_TOKENS = 39 STAREQUAL = 39
SLASHEQUAL = 40
PERCENTEQUAL = 41
AMPEREQUAL = 42
VBAREQUAL = 43
CIRCUMFLEXEQUAL = 44
LEFTSHIFTEQUAL = 45
RIGHTSHIFTEQUAL = 46
DOUBLESTAREQUAL = 47
OP = 48
ERRORTOKEN = 49
N_TOKENS = 50
NT_OFFSET = 256 NT_OFFSET = 256
#--end constants-- #--end constants--