Skip to content

Commit

Permalink
fixes #339
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov committed Oct 7, 2024
1 parent 077b2e4 commit 8a98696
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 8a98696

Please sign in to comment.