diff options
author | ptmcg <ptmcg@austin.rr.com> | 2020-04-07 15:25:08 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2020-04-07 15:25:08 -0500 |
commit | 72f2c5a67b4a26f584104b9ff63e1f272f54c5df (patch) | |
tree | 029f9fbacee8f4b378d3a9759979c5d2c60826d9 /examples/simpleBool.py | |
parent | 1881e43c10c34c0d24a6e3ecea7b4da710f9c790 (diff) | |
download | pyparsing-git-72f2c5a67b4a26f584104b9ff63e1f272f54c5df.tar.gz |
enable packrat parsing in all examples using infixNotation
Diffstat (limited to 'examples/simpleBool.py')
-rw-r--r-- | examples/simpleBool.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/simpleBool.py b/examples/simpleBool.py index f47e090..5ff1728 100644 --- a/examples/simpleBool.py +++ b/examples/simpleBool.py @@ -12,7 +12,9 @@ # Copyright 2006, by Paul McGuire
# Updated 2013-Sep-14 - improved Python 2/3 cross-compatibility
#
-from pyparsing import infixNotation, opAssoc, Keyword, Word, alphas
+from pyparsing import infixNotation, opAssoc, Keyword, Word, alphas, ParserElement
+
+ParserElement.enablePackrat()
# define classes to be built at parse time, as each matching
# expression type is parsed
|