Commit 7fbc6d24 authored by Taddeus Kroes's avatar Taddeus Kroes

Application in parser now also applies implicit rules that are not hints after...

Application in parser now also applies implicit rules that are not hints after applying an explicit rule.
parent cc891cee
......@@ -292,9 +292,16 @@ class Parser(BisonParser):
self.find_possibilities()
while self.possibilities:
sugg = self.possibilities[0]
# Find the first implicit possibliity in the list
# FIXME: Is it smart to apply a rule that is not a hint?
sugg = None
if sugg.handler not in IMPLICIT_RULES:
for pos in self.possibilities:
if pos.handler in IMPLICIT_RULES:
sugg = pos
break
if not sugg:
break
if self.verbose:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment