Further fixes for failing tests.

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

No files matched your search

+4 -1
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):