[antlr-interest] StringTemplate stack overflow exception, stringtemplate-3.0

Hardy, Stephen Stephen_Hardy at rabbit.com
Sun Jul 15 17:35:16 PDT 2007


Terence,

 

Here is the console output when lint mode is turned on...

 

Exception in thread "main" java.lang.IllegalStateException: infinite
recursion to 

     <anonymous([])@58> referenced in <anonymous([])@53>; stack trace:

<anonymous([])@58>, attributes=[dd=<anonymous()@57>], references=[dd,
scs, d]>

<anonymous([])@53>, attributes=[d, ds=<anonymous()@52>], references=[ds,
scs, d]>

<anonymous([])@54>, attributes=[p=List[..<anonymous()@53>..]],
references=[p, scs, d]>

<anonymous([])@55>, attributes=[pl=<anonymous()@54>, v], references=[pl,
scs, d]>

<anonymous([])@56>, attributes=[ptl=<anonymous()@55>], references=[ptl,
scs, d]>

<anonymous([])@57>, attributes=[dsuf=List[..<anonymous()@56>..], id],
references=[id, dsuf, scs, d]>

<anonymous([])@58> (start of recursive cycle)

...

 

Without (as yet) fully understanding the above, it seems odd that every
line contains a "pointer" to the previous line in the attributes
*except* the second line (@53) refers to @52 and not @58.  Hmmm...

 

I'll look into it some more.  Somebody is about to use a welder, so I
have to log off for a while.  This is Fiji :-)

 

Regards,

SJH

 

 

> -----Original Message-----

> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-

> bounces at antlr.org] On Behalf Of Terence Parr

> Sent: Saturday, July 14, 2007 2:36 PM

> To: antlr-interest Interest

> Subject: Re: [antlr-interest] StringTemplate stack overflow

> exception,stringtemplate-3.0

> 

> Hi. Can you turn on lint mode in ST?  It detects infinite cycles in

> your tree of STs.

> Ter

 

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


More information about the antlr-interest mailing list