Skip to content

Commit

Permalink
Remove workaround for ANTLR bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyum committed Jun 26, 2018
1 parent 15747cf commit e9a1b2c
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,18 +539,11 @@ expression
booleanExpression
: NOT booleanExpression #logicalNot
| EXISTS '(' query ')' #exists
| predicated #booleanDefault
| valueExpression predicate? #predicated
| left=booleanExpression operator=AND right=booleanExpression #logicalBinary
| left=booleanExpression operator=OR right=booleanExpression #logicalBinary
;

// workaround for:
// https://github.com/antlr/antlr4/issues/780
// https://github.com/antlr/antlr4/issues/781
predicated
: valueExpression predicate?
;

predicate
: NOT? kind=BETWEEN lower=valueExpression AND upper=valueExpression
| NOT? kind=IN '(' expression (',' expression)* ')'
Expand Down

0 comments on commit e9a1b2c

Please sign in to comment.