Closed pjanck closed 2 years ago
I can prepare a PR after #19 and #21 have been merged (for easier traceability).
Looking at #13 as well, I'd like to propose another solution:
boolean_expression
: boolean_term (logical_interconnection boolean_term)* ;
boolean_term
: NOT? ( leftside operator rightside | LPAREN boolean_expression RPAREN );
In this way, NOT
can be combined with both alternatives of the boolean_term
.
Proposed move of the NOT statement from boolean_expression to boolean_term is ok with me. I would suggest the following adjustment to last proposal:
boolean_expression
: boolean_term (logical_interconnection boolean_term)* ;
boolean_term
: NOT? ((leftside operator rightside) | (LPAREN boolean_expression RPAREN));
Applied in #21 .
Propose to change to