[antlr-interest] Highlighting syntax errors

Indhu Bharathi indhu.b at s7software.com
Wed Jan 21 04:28:51 PST 2009


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 <indhu.b at s7software.com> 
To: antlr-interest <antlr-interest at 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 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090121/eb837ee2/attachment.html 


More information about the antlr-interest mailing list