Commit c6b6f0ad authored by eckhart's avatar eckhart
Browse files small optimization

parent 781802c9
......@@ -3308,6 +3308,7 @@ class Forward(UnaryParser):
result = self.parser(text)
self.recursion_counter[location] = depth # allow moving back and forth
# TODO: Eliminate returning_from_recursion__ in favor of memoization__
recursion_state = grammar.returning_from_recursion__
self.recursion_counter[location] = 0 # fail on the first recursion
grammar.memoization__ = True
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