Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
34052622
Commit
34052622
authored
Aug 24, 2000
by
Thomas Wouters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for augmented assignment.
parent
104a7bcc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
54 deletions
+66
-54
Lib/symbol.py
Lib/symbol.py
+52
-51
Lib/token.py
Lib/token.py
+14
-3
No files found.
Lib/symbol.py
View file @
34052622
...
@@ -22,57 +22,58 @@ stmt = 264
...
@@ -22,57 +22,58 @@ stmt = 264
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
=
{}
...
...
Lib/token.py
View file @
34052622
...
@@ -47,9 +47,20 @@ CIRCUMFLEX = 33
...
@@ -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--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment