summaryrefslogtreecommitdiff
path: root/examples/eval_arith.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/eval_arith.py')
-rw-r--r--examples/eval_arith.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/eval_arith.py b/examples/eval_arith.py
index 6a747f3..4f6082f 100644
--- a/examples/eval_arith.py
+++ b/examples/eval_arith.py
@@ -17,8 +17,11 @@ from pyparsing import (
opAssoc,
infixNotation,
Literal,
+ ParserElement,
)
+ParserElement.enablePackrat()
+
class EvalConstant:
"Class to evaluate a parsed constant or variable"