[stringtemplate-interest] List-making problem

Mikael Nyberg mikaeln at acm.org
Mon Dec 1 01:44:55 PST 2008


I've been using the new version and it works fine, thanks again. But
now I am in need of further nesting, and the problem returns, since it
seems that the list-making syntax does not accept all expressions.

For instance, I would like to be able to create list elements
consisting of conditionally added subtemplates ($if()$...$endif$),
lists with separators ($attr:{something:$it$}; separator=","$) etc.
When I try to add expressions like these to a list using the
$[...,...];separator=","$ list-making syntax, I get errors.

Is there some syntactic element I'm overlooking here, or is the
list-making syntax not meant to support arbitrary expressions as list
elements?

Regards,

-Mikael


On Fri, Nov 21, 2008 at 2:59 PM, Roman Odaisky <roma at qwertty.com> wrote:
> On Friday, 21.11.2008 14:05:37 Mikael Nyberg wrote:
>
>> $[where:{where:$it$},what:{what:$it$}];separator=","$] is not legal.
>
> Legal since ST 3.2.1. http://www.antlr.org:8888/browse/ST-41
>
> --
> HTH
> Roman.
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>
>



-- 
Mikael Nyberg
mikaeln at acm.org
tel: 91830360


More information about the stringtemplate-interest mailing list