Including pgen2 tests from the cpython repo.
This commit is contained in:
1 parent
507ddfa4b0
commit
2a691eefff
3 files changed
+270
-1
No files matched your search
@@ -208,7 +208,7 @@ class Parser(object):
|
||||
return new_node
|
||||
|
||||
def convert_leaf(self, grammar, type, value, prefix, start_pos):
|
||||
#print('leaf', repr(value), token.tok_ntype)
|
||||
#print('leaf', repr(value), token.tok_name[type])
|
||||
if type == tokenize.NAME:
|
||||
if value in grammar.keywords:
|
||||
if value in ('def', 'class', 'lambda'):
|
||||
|
||||
Reference in new issue
Block a user