diff options
author | ptmcg <ptmcg@austin.rr.com> | 2020-01-04 17:43:44 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2020-01-04 17:43:44 -0600 |
commit | 062778c428a75c5b966f14bf91619c4e328261ab (patch) | |
tree | ebe5846a986fd015e5facbc76dd87db23504bc87 /pyparsing/helpers.py | |
parent | 95c5de2b0b7c04009e0f8d02f9533e59f1b16d1d (diff) | |
download | pyparsing-git-062778c428a75c5b966f14bf91619c4e328261ab.tar.gz |
Rollforward infixNotation ternary op fix from 2.4.6 branch, plus related unit test; change TestParseResultsAsserts to mixin instead of subclass; rollforward 2.4.6 CHANGES blurb from 2.4.6 branch
Diffstat (limited to 'pyparsing/helpers.py')
-rw-r--r-- | pyparsing/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyparsing/helpers.py b/pyparsing/helpers.py index 3bd5a67..c4b84d7 100644 --- a/pyparsing/helpers.py +++ b/pyparsing/helpers.py @@ -696,7 +696,7 @@ def infixNotation(baseExpr, opList, lpar=Suppress("("), rpar=Suppress(")")): elif arity == 3: matchExpr = _FB( lastExpr + opExpr1 + lastExpr + opExpr2 + lastExpr - ) + Group(lastExpr + opExpr1 + lastExpr + opExpr2 + lastExpr) + ) + Group(lastExpr + OneOrMore(opExpr1 + lastExpr + opExpr2 + lastExpr)) else: raise ValueError( "operator must be unary (1), binary (2), or ternary (3)" |