I have the following in a JavaCC file:
void condition() : {}
{
expression() comp_op() expression()
| condition() (<AND> | <OR>) condition()
}
where <AND>
is "&&" and <OR>
is "||". This is causing problems due to the fact that it is direct left-recursion. How can I fix this?