I work on a project that requires that Parser does exit immediately upon first 
recognition error. So I overrode two methods, mismatch() and 
recoverFromMismatchedSet and add the following to parser grammar:
@rulecatch 
{
   catch (RecognitionException re) 
   {
      throw re;
   }
}
 
Most of the time, parser does exit immediately upon first recognition error. 
But sometimes, it only wrote the first RecognitionException message to the 
System output and continued instead of throwing the exception and exiting out. 
Any idea why that happened and how to fix it? 
 


      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to