summaryrefslogtreecommitdiff
path: root/examples/simpleSQL.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2020-04-07 15:25:08 -0500
committerptmcg <ptmcg@austin.rr.com>2020-04-07 15:25:08 -0500
commit72f2c5a67b4a26f584104b9ff63e1f272f54c5df (patch)
tree029f9fbacee8f4b378d3a9759979c5d2c60826d9 /examples/simpleSQL.py
parent1881e43c10c34c0d24a6e3ecea7b4da710f9c790 (diff)
downloadpyparsing-git-72f2c5a67b4a26f584104b9ff63e1f272f54c5df.tar.gz
enable packrat parsing in all examples using infixNotation
Diffstat (limited to 'examples/simpleSQL.py')
-rw-r--r--examples/simpleSQL.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/simpleSQL.py b/examples/simpleSQL.py
index a806ad6..ebed658 100644
--- a/examples/simpleSQL.py
+++ b/examples/simpleSQL.py
@@ -19,9 +19,12 @@ from pyparsing import (
opAssoc,
restOfLine,
CaselessKeyword,
+ ParserElement,
pyparsing_common as ppc,
)
+ParserElement.enablePackrat()
+
# define SQL tokens
selectStmt = Forward()
SELECT, FROM, WHERE, AND, OR, IN, IS, NOT, NULL = map(