Fix a few issues caused by the refactoring.

This commit is contained in:
Dave Halter committed 2016-05-29 19:49:35 +02:00
1 parent feef45f4bb
commit daa68b66ad
8 files changed
+60 -33

No files matched your search

+2 -1
View File
@@ -121,7 +121,8 @@ class PgenParser(object):
break
else:
# We never broke out -- EOF is too soon -- Unfinished statement.
self.error_recovery(self.grammar, self.stack, type_, value,
# TODO the arcs argument [] is not correctly defined.
self.error_recovery(self.grammar, self.stack, [], type_, value,
start_pos, prefix, self.addtoken)
# Add the ENDMARKER again.
if not self.addtoken(type_, value, prefix, start_pos):