Hi I am trying to stop parsing on a lexical error, and it just doesn't want to stop.
I have tried this thread : http://www.antlr.org/wiki/pages/viewpage.action?pageId=5341217 and it doesn't work. I am using antlr 3.1.1. I have also tried adding the catch rules in my grammar: @members { protected void mismatch (IntStream input, int ttype, BitSet follow) throws RecognitionException { throw new MismatchedTokenException(ttype, input); } public Object recoverFromMismatchedSet (IntStream input, RecognitionException exp, BitSet follow) throws RecognitionException { throw exp; } } @rulecatch { catch (RecognitionException exp) { throw exp; } } and it doesn't help anything. Anyone has any idea? I am really looking to know how to do that. Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
