title: ANTLR Program stops reading an input file
body: <p>i have a problem with this grammar:</p>
  
  <pre><code>//parser    
  macchinaTuring: { init();}
             listaIstruzioni 
             {env.insertwarning();
             }
      ;
  
      listaIstruzioni : (istruzioni)+ 
      ;
  
      istruzioni : (LP statoiniziale VI statofinale VI DIR RP PV (commento)? CAPO)
      ;
  
      statoiniziale:s=STATE VI c=CHAR 
              {env.insertstatoiniziale($s, $c);} 
      ;
  
      statofinale: x=STATE VI y=CHAR
              {env.insertstatofinale($x, $y);}
      ;
  
      commento : BAR STRING
      ;
  
      // lexer
  
      LP    : '(' ; 
      RP    : ')' ;
      VI    : ',' ;
      PV    : ';' ;
      DIR   : ( '='           
            | '&lt;'
            | '&gt;' 
            ) 
         ; 
      BAR   : '//' ;
      CAPO  : (('\r' '\n') | ('\n') | ('\r'));
      CHAR  : (('a'..'z')|('A'..'Z')) ;
      STATE : ('0'..'9')+ ;
      STRING: (('a'..'z')|('A'..'Z')|('0'..'9')|' ')* ;
      ERROR : . ;
  </code></pre>
  
  <p>I've made a test class which analyzes an input file in which every line is a sentence of <code>istruzioni</code>. If the LP character is missing, the program doesn't recognize the new line and it stops reading. How to solve? 
  Thanks in advance</p>