Further fixes for failing tests.

This commit is contained in:
Dave Halter
2016-06-04 00:59:17 +02:00
parent c3ffaab8af
commit 6b63b9cf54
2 changed files with 8 additions and 4 deletions

View File

@@ -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):