[stringtemplate-interest] antlr.org contact
Terence Parr
parrt at cs.usfca.edu
Thu Mar 22 11:33:13 PDT 2012
You could look through the "chunks" in the implementation link (a CompiledST) from an ST object. You can take a look at the GUI Visualizer to get some ideas.
Ter
On Mar 22, 2012, at 10:23 AM, oddjobsman wrote:
> Ranganath Kini wrote:
>
> Hi Terence,
>
> Is there any way of getting a list of attribute expressions defined in the template before rendering the template? For example I want to do the following:
>
> ST st = new ST("My name is $name$. I am $age$ years old", '$', '$');
> Set<String> attrExpSet = st.getAttributeExpressions();
> // attrExpSet must contain - name, age
>
> Regards,
> Ranganath
>
More information about the stringtemplate-interest
mailing list