I do know that this question has been asked a lot of times. I am trying to build a grammar using ANTLR.
Predicate : LOWERCASE | Predicate VarChars ;
VarChars : LOWERCASE | UPPERCASE;
fragment LOWERCASE : [a-z] ;
fragment UPPERCASE : [A-Z] ;
I am getting the following error :"The following sets of rules are mutually left-recursive [Predicate]"
Please show me how this is fixed. How to remove the mutual left recursion in my antlr grammar.