Skip to content

Commit

Permalink
Merge pull request #340 from caracal-pipeline/issue-339
Browse files Browse the repository at this point in the history
tiny fix for #339
  • Loading branch information
JSKenyon authored Oct 7, 2024
2 parents 077b2e4 + 8a98696 commit 347b60e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scabha/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def construct_parser():
(Literal("&"), 2, opAssoc.LEFT, BinaryHandler.pa),
(Literal("^"), 2, opAssoc.LEFT, BinaryHandler.pa),
(Literal("|"), 2, opAssoc.LEFT, BinaryHandler.pa),
(reduce(operator.or_, map(Literal, ("==", "!=", ">", "<", ">=", "<="))), 2, opAssoc.LEFT, BinaryHandler.pa),
(reduce(operator.or_, map(Literal, ("==", "!=", ">=", "<=", ">", "<"))), 2, opAssoc.LEFT, BinaryHandler.pa),
(CaselessKeyword("in")|CaselessKeyword("not in"), 2, opAssoc.LEFT, BinaryHandler.pa),
(CaselessKeyword("not"), 1, opAssoc.RIGHT, UnaryHandler.pa),
(CaselessKeyword("and")|CaselessKeyword("or"), 2, opAssoc.LEFT, BinaryHandler.pa),
Expand Down
1 change: 1 addition & 0 deletions tests/scabha_tests/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def test_parser():
"a.b + b.c - c.d",
"a.b + b.c * c.d",
"a.b + -b.c",
"a.b <= 0",
"a.b",
"IFSET(a.b)",
]:
Expand Down

0 comments on commit 347b60e

Please sign in to comment.