summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Fischer <maxfischer2781@gmail.com>2021-06-20 21:47:38 +0200
committerMax Fischer <maxfischer2781@gmail.com>2021-06-20 21:47:38 +0200
commitdbb71798434c594fc0ad22484daf29e20e7a0524 (patch)
treecff3a14d6a77789e9ad4a720cc511dd64a71b254
parentfa33732bdef08da61ff7e01a013eb00f81fe7d89 (diff)
downloadpyparsing-git-dbb71798434c594fc0ad22484daf29e20e7a0524.tar.gz
flattened Forward parse method
-rw-r--r--pyparsing/core.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py
index e2efe8a..c824a4c 100644
--- a/pyparsing/core.py
+++ b/pyparsing/core.py
@@ -4425,10 +4425,6 @@ class Forward(ParseElementEnhance):
)
if not ParserElement._bounded_recursion_enabled:
return super().parseImpl(instring, loc, doActions)
- else:
- return self.parse_recursive(instring, loc, doActions)
-
- def parse_recursive(self, instring, loc, doActions=True):
with ParserElement.recursion_lock:
memo = ParserElement.recursion_memos.setdefault(loc, {})
# there are two cases for the current `self` clause in the memo: