[stringtemplate-interest] string template dynamic scope example
Terence Parr
parrt at cs.usfca.edu
Mon Feb 28 10:18:50 PST 2011
Dynamic scoping to sort of happens. for example, if you are generating a java class, you will create a template with an argument of className. any template that is included within that body can reference className as if it were passed as a parameter to that template.
Ter
On Feb 23, 2011, at 8:53 PM, Xu Kai wrote:
> Hi All,
> I am using ANTLR+ST to do some code generation. I am new to the recognizer and generator.
> I have read the Definitive Guide to ANTLR and String Template 3 Document. But I havn't seen a example to show how to use dynamic scope in String Template ?
> Is there any template file I may get to see some example which illustrates how to use the dynamic feature of string template?
> Thanks a lot.
>
> --
> Xu Kai
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list