summaryrefslogtreecommitdiff
path: root/src/examples/invRegex.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/invRegex.py')
-rw-r--r--src/examples/invRegex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/invRegex.py b/src/examples/invRegex.py
index 26d12ed..5d9a393 100644
--- a/src/examples/invRegex.py
+++ b/src/examples/invRegex.py
@@ -14,7 +14,7 @@
__all__ = ["count","invert"]
from pyparsing import (Literal, oneOf, printables, ParserElement, Combine,
- SkipTo, operatorPrecedence, ParseFatalException, Word, nums, opAssoc,
+ SkipTo, infixNotation, ParseFatalException, Word, nums, opAssoc,
Suppress, ParseResults, srange)
class CharacterRangeEmitter(object):
@@ -172,7 +172,7 @@ def parser():
reDot.setParseAction(handleDot)
reTerm = ( reLiteral | reRange | reMacro | reDot | reNonCaptureGroup)
- reExpr = operatorPrecedence( reTerm,
+ reExpr = infixNotation( reTerm,
[
(repetition, 1, opAssoc.LEFT, handleRepetition),
(None, 2, opAssoc.LEFT, handleSequence),