[stringtemplate-interest] 1, 2, and 3
Terence Parr
parrt at cs.usfca.edu
Sun May 3 15:55:47 PDT 2009
that is a damn good question. normally we do the first one different
not the last. OH. trunc(foo). I am adding to the cheat sheet. ooop.s
Ter
On May 2, 2009, at 6:50 PM, Ed MacDonald wrote:
>
> I’m trying to figure out how to apply a different treatment to the
> last element in a multi-valued attribute. This seems like it would
> be a pretty common use case, but I haven’t been able to find how to
> do it. The first(), last(), and rest() family of functions seemed
> like it would do the trick but unfortunately rest() includes last().
>
> So I can do this: 1 and 2, 3.
> But not this: 1, 2, and 3.
>
> Any suggestions?
>
> Thanks,
> -Ed
> _______________________________________________
> 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