[stringtemplate-interest] Error messages with absolute linenumbers

Micheal J open.zone at virgin.net
Tue Jul 3 14:59:35 PDT 2007


Hi,

> > is it possible to customize the error message output to provide
> > more detailed
> > information?
> 
> Hi. I am sorry that at this point there is no way to improve it.  I  
> need to rebuild in v3 ANTLR before we can get their messages.  It  
> seems to me that I should do a 4.0 version so that I can clean up  
> things John Snyders, Tom Burns, et al.

I may be totally off but...

Not sure how ANTLR v3 helps with including correct line no in error msgs. I
thought the need to preserve lazy eval semantics (hence stuffing actions
into single lexed tokens) is what complicates the correct lineno issue.

No easy solutions exist in ANTLR v2 or v3 as far as I can tell (without
looking at the code again - this is all just from memory).

Micheal



More information about the stringtemplate-interest mailing list