Got it! I guess I can do that using org.antlr.runtime.debug.DebugEventListener's beginResync (), endResync () & consumeToken(Token t)
http://www.antlr.org/api/Java/interfaceorg_1_1antlr_1_1runtime_1_1debug_1_1_debug_event_listener.html :-) ----- Original Message ----- From: Indhu Bharathi <indh...@s7software.com> To: antlr-interest <antlr-inter...@antlr.org> Sent: Wednesday, January 21, 2009 5:30:06 PM GMT+0530 Asia/Calcutta Subject: [antlr-interest] Highlighting syntax errors Hi, When I parse an input in ANTLRWorks IDE, I can see which portion of the input has errors using the 'input' window in the debugger. Syntax error (handled by automatic error recovery) will be highlighted in red. While this is a very useful feature, I cannot parse a very big file (approx 1 mb) inside the IDE as that would be very slow. Is there a way to do this "error highlighting" outside the IDE using the error handling techniques? I looked into chapter 10. But didn't get any hint. Advanced thanks for any pointers :-) - Indhu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-interest@googlegroups.com To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address