[antlr-interest] StringTemplate question

Terence Parr parrt at cs.usfca.edu
Thu Jan 1 13:27:41 PST 2004


On Thursday, January 1, 2004, at 01:10 PM, llza2003 wrote:

> Hi,
>
> It seems it is not possible to nest anonymous templates in the
> StringTemplate library, e.g.
>
> $A:{$attr:{$attr.B$}$}$

Howdy :) Hmm...Yeah, I think somebody else found this too...yep, found 
this in my bugs list:

* Matthew Ford: Support nested anon templates or return better error.

Sorry about that...no conceptual reason, just a very bad scanner (which 
I do by hand since the delimiters are unrestricted).  Actually, it 
might be in the stringtemplate action lexer itself not the thing that 
chunk up the template.

Sure, send in a patch if you want :)  Matthew will thank you too...

Thanks for your interest...

Ter

> Is this in fact true? If so, is there a conceptual reason why this is
> not supported? It seems reasonably straightforward to implement and I
> thought I should check before I rush off and implement something that
> is already supported or, even worse, not conceptually sound.
>
> :-)
>
> Luis
>
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>  http://groups.yahoo.com/group/antlr-interest/
>
> To unsubscribe from this group, send an email to:
>  antlr-interest-unsubscribe at yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
>  http://docs.yahoo.com/info/terms/
>
>
>
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Co-founder, http://www.jguru.com
Co-founder, http://www.knowspam.net enjoy email again!
Co-founder, http://www.peerscope.com pure link sharing




 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/antlr-interest/

To unsubscribe from this group, send an email to:
 antlr-interest-unsubscribe at yahoogroups.com

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list