You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the criteria token includes "relation | and | or" which all begin with a '[' token and the parfser automaticaly selects the first one ("relation") so next expects an "op, operand, operand". No matter what. This happens because the parsing is greedy, it does not backtrack (it is impossible for this type of grammars). One thing you can do is factor the grammar like the following part:
Having the following grammar:
I'd expect the input :
would have no syntax errors, but the there is an error reported.
How do I define recursive grammar like this one?
The text was updated successfully, but these errors were encountered: