diff options
Diffstat (limited to 'pyparsing/core.py')
-rw-r--r-- | pyparsing/core.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py index d27b3c0..d018da1 100644 --- a/pyparsing/core.py +++ b/pyparsing/core.py @@ -827,6 +827,8 @@ class ParserElement(ABC): import pyparsing pyparsing.ParserElement.enablePackrat() """ + if ParserElement._bounded_recursion_enabled: + raise RuntimeError("Packrat and Bounded Recursion are not compatible") if not ParserElement._packratEnabled: ParserElement._packratEnabled = True if cache_size_limit is None: |