From 72f2c5a67b4a26f584104b9ff63e1f272f54c5df Mon Sep 17 00:00:00 2001 From: ptmcg Date: Tue, 7 Apr 2020 15:25:08 -0500 Subject: enable packrat parsing in all examples using infixNotation --- examples/simpleSQL.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/simpleSQL.py') 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( -- cgit v1.2.1