From de8326d00dffdb500c02839a98330b869c2457f3 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 22 Dec 2018 09:28:48 -0800 Subject: Trim trailing white space throughout the project Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines. --- examples/simpleArith.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/simpleArith.py') diff --git a/examples/simpleArith.py b/examples/simpleArith.py index 825956b..af05373 100644 --- a/examples/simpleArith.py +++ b/examples/simpleArith.py @@ -34,7 +34,7 @@ factop = Literal('!') # - rightLeftAssoc is the indicator whether the operator is # right or left associative, using the pyparsing-defined # constants opAssoc.RIGHT and opAssoc.LEFT. -# - parseAction is the parse action to be associated with +# - parseAction is the parse action to be associated with # expressions matching this operator expression (the # parse action tuple member may be omitted) # 3. Call infixNotation passing the operand expression and @@ -42,7 +42,7 @@ factop = Literal('!') # as the generated pyparsing expression. You can then use # this expression to parse input strings, or incorporate it # into a larger, more complex grammar. -# +# expr = infixNotation( operand, [("!", 1, opAssoc.LEFT), ("^", 2, opAssoc.RIGHT), @@ -63,5 +63,4 @@ test = ["9 + 2 + 3", for t in test: print(t) print(expr.parseString(t)) - print('') - + print('') -- cgit v1.2.1