I resolved this by splitting up the expr
rule into two:
op_expr:
IDENTIFIER { () }
| LPAREN expr RPAREN { () }
| OPERATOR op_expr { () }
;
expr:
op_expr { () }
| expr LPAREN expr RPAREN { () }
;
I resolved this by splitting up the expr
rule into two:
op_expr:
IDENTIFIER { () }
| LPAREN expr RPAREN { () }
| OPERATOR op_expr { () }
;
expr:
op_expr { () }
| expr LPAREN expr RPAREN { () }
;