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/oc.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/oc.py')
-rw-r--r-- | src/examples/oc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/oc.py b/src/examples/oc.py index 1d49190..77ea195 100644 --- a/src/examples/oc.py +++ b/src/examples/oc.py @@ -92,7 +92,7 @@ TYPE = Group((INT | CHAR) + ZeroOrMore("*")) expr = Forward()
operand = NAME | integer | char | string_
-expr << (operatorPrecedence(operand,
+expr << (infixNotation(operand,
[
(oneOf('! - *'), 1, opAssoc.RIGHT),
(oneOf('++ --'), 1, opAssoc.RIGHT),
|