[antlr-interest] StringTemplate stack overflow exception, stringtemplate-3.0
Terence Parr
parrt at cs.usfca.edu
Mon Jul 16 12:21:01 PDT 2007
On Jul 15, 2007, at 6:43 PM, Hardy, Stephen wrote:
> OK, welding done...
>
>
>
> Well , it turns out that there *is* a loop in the template
> inclusion, but there are more steps than indicated by the trace.
> Maybe there’s a limit in the code somewhere. However, I don’t
> understand why this should cause an exception since recursion is
> such a natural part of most grammars.
Hi.. Recursion is fine, it's an error though when a ST directly or
indirectly encloses itself. Look for something like that: a block
that encloses itself.
> What is the interpretation of the “references=[...]” stuff in the
> trace. Sure, I have scs and d attributes in some of the templates,
> but not in any of those listed. Maybe it is some sort of run-time
> indication of how it got to the particular state. Needs a bit of
> explanation though.
Those refs are what attributes are used in that template instance.
Ter
More information about the antlr-interest
mailing list