[stringtemplate-interest] it, i, i0 for ST v4

Barrie Treloar baerrach at gmail.com
Wed Dec 22 18:26:38 PST 2010


On Thu, Dec 23, 2010 at 11:18 AM, Terence Parr <parrt at cs.usfca.edu> wrote:
> Surely.  The idea is that v4 always has a parameter list but can still inherit stuff that is not a parameter of that template.  When we apply a template, v3 let you avoid parameter like this:
>
> $names:bold()$

Ahh, I think the bit I was missing is that I forgot the above says
apply the template "bold" to every element in names.
Hence not understanding the first parameter bit as being all the
elements in names and the confusion around why Sam's template needed
the args switched.
It's obvious now.

Thanks.


More information about the stringtemplate-interest mailing list