Further fixes for failing tests.
This commit is contained in:
1 parent
c3ffaab8af
commit
6b63b9cf54
2 files changed
+8
-4
No files matched your search
@@ -43,7 +43,10 @@ def token_to_ilabel(grammar, type_, value):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
return grammar.tokens[type_]
|
||||
try:
|
||||
return grammar.tokens[type_]
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
|
||||
class PgenParser(object):
|
||||
|
||||
Reference in new issue
Block a user