[stringtemplate-interest] Asking template for its Attributes prior to running it

Terence Parr parrt at cs.usfca.edu
Mon Mar 22 11:13:53 PDT 2010


hi. do you mean from code or within a template? The template should give you back a map of the attributes no problem from Java code or whatever your target is.
Ter
On Mar 21, 2010, at 5:33 AM, Martin Clausen wrote:

> I know this is in the FAQ
> (http://www.antlr.org/wiki/pages/viewpage.action?pageId=1817), but the
> answer is not there.
> 
> Is there a way of asking template for its Attributes prior to running
> it? I can live with the answer not including an Attributes found in
> conditionally included templates etc.
> 
> Thanks for any help.
> 
> /mac



More information about the stringtemplate-interest mailing list