[stringtemplate-interest] Rg Need ur Suggestion
Terence Parr
parrt at cs.usfca.edu
Thu Sep 3 11:31:21 PDT 2009
use a conditional?
T
On Sep 3, 2009, at 9:49 AM, Viuha Sundararajan wrote:
> Hello,
>
> Does the String Template class support turning off a template within
> another template?
> For instance say I have a template that contains another template -
> %MA_TEMPLATE%
>
>
> DT $OFFICE$ $GEO$ $TIME$ $SEQ$ %MA_TEMPLATE%
>
>
> Where MA_TEMPLATE is
> /MA $NBR$
>
> I want to be able to turn off MA_TEAMPLATE if the data element
> NEEDS_MA = false
>
> So if NEEDS_MA = true - the result after substituting the values is
>
> DT HDL SHB 160337 026A /MA 003
>
> If NEEDS_MA = fase - the result after substituting the values is
>
> DT HDL SHB 160337 026A
>
> How would I do that with the String Template Is this possible?
>
> Awaiting your response
>
> Thanks a lot
> Sundar.
> _______________________________________________
> 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