First implementation to be ready to complete corrupt imports. Working ok.

This commit is contained in:
Dave Halter committed 2014-11-25 19:35:27 +01:00
1 parent e72eaf7a59
commit 5d82b11f59
7 files changed
+144 -7

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ class Parser(object):
# Done parsing, but another token is input
raise ParseError("too much input", type, value, start_pos)
else:
self.error_recovery(self.grammar, self.stack, type, value)
self.error_recovery(self.grammar, self.stack, type, value, start_pos)
break
def classify(self, type, value, start_pos):