Skip to content

Commit

Permalink
Fixed issue where the partition filter expression parser failed when …
Browse files Browse the repository at this point in the history
…parsing '-' token in negative numbers. Basically the parser did not support it. Modified the INT token to support negative numbers.
  • Loading branch information
ajoymajumdar committed Mar 25, 2016
1 parent e3ecbfc commit d4b61bc
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ TOKEN :
| < LT: "<" >
| < LPAREN : "(">
| < RPAREN : ")">
| < INT: ( <DIGIT> )+ >
| < INT: "-"( <DIGIT> )+ | ( <DIGIT> )+>
| < #DIGIT: ["0" - "9"] >
| < FLOAT: <INT> <EXPONENT> | <MANTISSA> ( <EXPONENT> )? >
| < #EXPONENT: ["e", "E"] ("+"|"-")? <INT> >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ TOKEN :
| < LT: "<" >
| < LPAREN : "(">
| < RPAREN : ")">
| < INT: ( <DIGIT> )+ >
| < INT: "-"( <DIGIT> )+ | ( <DIGIT> )+>
| < #DIGIT: ["0" - "9"] >
| < FLOAT: <INT> <EXPONENT> | <MANTISSA> ( <EXPONENT> )? >
| < #EXPONENT: ["e", "E"] ("+"|"-")? <INT> >
Expand Down
Loading

0 comments on commit d4b61bc

Please sign in to comment.