title: ANTLR4 mutually left-recursive error when parsing
body: <p>I have this ANTLR 4 grammar:</p>
  
  <pre><code>constantFixedExpresion : term (('+'|'-') term)+;
  
  term : factor (('*'|'//'|'REM')factor)+;
  
  factor : ('+'|'-')*
             ( wholeNumberConstant
             | constantFixedExpresion
             | 'TOFIXED' (stringConstant | bitCodeConstant)      
             | identifier)
           ('FIT'constantFixedExpresion)*;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>error(119): LanguageA.g4::: The following sets of rules are mutually left-recursive [constantFixedExpresion, factor, term]</p>
  </blockquote>
  
  <p>I tried so many ways but can't fix it. What is the problem and how can I solve it?</p>