Skip to content

Commit

Permalink
Make operators case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Jan 17, 2018
1 parent ef2f7b6 commit d8387d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mappyfile/mapfile.lalr.g
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ expression: "(" or_test ")"
?and_test : (and_test ("AND"i|"&&"))? comparison
?comparison: (comparison compare_op)? add
!compare_op: ">=" | "<" | "=*" | "==" | "=" | "!=" | "~" | "~*" | ">"
| "<=" | "IN" | "NE" | "EQ" | "LE" | "LT" | "GE" | "GT"
| "<=" | "IN"i | "NE"i | "EQ"i | "LE"i | "LT"i | "GE"i | "GT"i

?add: (add "+")? (func_call | value)
// ?multiply: (multiply "*")? (func_call | value)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,6 @@ def run_tests():

if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
test_escaped_string()
# run_tests()
# test_escaped_string()
run_tests()
print("Done!")

0 comments on commit d8387d7

Please sign in to comment.