diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2016-02-07 05:47:23 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2016-02-07 05:47:23 +0000 |
commit | 3963d5fdbd16f25d4e94968b823e811df836142d (patch) | |
tree | 0329cd5c5951e851e445b6e07b3fd8420424e34b /src/examples/invRegex.py | |
parent | 4b24fe8cfb54086ecaec689a7cd229a0430b75c9 (diff) | |
download | pyparsing-git-3963d5fdbd16f25d4e94968b823e811df836142d.tar.gz |
Removed deprecated class Upcase and deprecated class keepOriginalText; updated examples to remove those symbols, and to replace operatorPrecedence with infixNotation
Diffstat (limited to 'src/examples/invRegex.py')
-rw-r--r-- | src/examples/invRegex.py | 4 |
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),
|