title: ANTLR Grammar Issue
body: <p>I have a problem with an ANTLR Grammar and I just don't see my problem, been trying to figure it out for over an hour now. I stripped my problem down to this simple grammar:</p>
  
  <pre><code>        grammar TestGrammar;
  
          options {
            language = Java;
            k=2;
          }
  
          compu_method :  '/begin COMPU_METHOD'  NAME  NAME  NAME  NAME
                (
                (formula)
                |('COEFFS' realnumber realnumber realnumber realnumber realnumber realnumber)
                )*
                '/end COMPU_METHOD';
  
              formula : '/begin FORMULA' (.)* '/end FORMULA';
  
              realnumber: (INT | FLOAT);
  
          NAME : LETTER (LETTER|'0'..'9'|'['|']'|'.')* ; 
          fragment LETTER : 'A'..'Z' | 'a'..'z' | '_' ; 
  
          INT : MINUS? ('0' | '1'..'9' '0'..'9'*) ; 
          FLOAT : MINUS? ('0'..'9')+ '.' ('0'..'9')* Exponent? | MINUS? '.' ('0'..'9')+ Exponent? | MINUS? ('0'..'9')+ Exponent ; 
          MINUS : '-' ; 
          fragment Exponent : ('e'|'E') ('+'|'-')? ('0'..'9')+ ;
  
          WS : ( '\r\n'|'\n'|' '|'\r'|'\t'|'\u000C' ) { $channel=HIDDEN;}; 
  </code></pre>
  
  <p>And the input I am trying to match is:</p>
  
  <pre><code>/begin COMPU_METHOD
          foo
          foo
          foo
          foo
          COEFFS 0.000000 1.000000 0.000000 0.000000 0.000000 1.000000
  /end COMPU_METHOD
  </code></pre>
  
  <p>The Interpreter always gives me "mismatched input 'COEFFS' expecting '\u0005'"</p>
  
  <p>But why?</p>
  
  <p>If I change the order of (formula) and ('COEFFS' ...) in my grammer it's fine, I just don't get why?</p>