[stringtemplate-interest] Error messages with absolute line numbers

Terence Parr parrt at cs.usfca.edu
Thu Jun 28 16:05:33 PDT 2007


On Jun 26, 2007, at 1:44 AM, Jose San Leandro wrote:

> Hi,
>
> I would like to know if there's a way to make StringTemplate  
> provide more
> detailed error messages than the default. The problem is when  
> eventually I
> mistype anything, I get errors like this:
>
>    [queryj] StringTemplate: error: template parse error: line 6:54:  
> unexpected
> token: null
>
> However, the line information is relative to the start of the rule,  
> which is
> defined in a file OR the parent group. So I find it difficult to  
> find out the
> exact location of the error.
>
> 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.

Ter


More information about the stringtemplate-interest mailing list