diff options
author | Max Fischer <maxfischer2781@gmail.com> | 2021-06-20 21:47:38 +0200 |
---|---|---|
committer | Max Fischer <maxfischer2781@gmail.com> | 2021-06-20 21:47:38 +0200 |
commit | dbb71798434c594fc0ad22484daf29e20e7a0524 (patch) | |
tree | cff3a14d6a77789e9ad4a720cc511dd64a71b254 | |
parent | fa33732bdef08da61ff7e01a013eb00f81fe7d89 (diff) | |
download | pyparsing-git-dbb71798434c594fc0ad22484daf29e20e7a0524.tar.gz |
flattened Forward parse method
-rw-r--r-- | pyparsing/core.py | 4 |
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: |