From c6b6f0ade1bd7c1c4e17ff32d937a84c202ed63a Mon Sep 17 00:00:00 2001 From: eckhart Date: Sat, 13 Jun 2020 00:48:22 +0200 Subject: [PATCH] parse.py: small optimization --- DHParser/parse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/DHParser/parse.py b/DHParser/parse.py index d1c8375..cea07f1 100644 --- a/DHParser/parse.py +++ b/DHParser/parse.py @@ -3308,6 +3308,7 @@ class Forward(UnaryParser): result = self.parser(text) self.recursion_counter[location] = depth # allow moving back and forth else: + # 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 -- GitLab