[stringtemplate-interest] it, i, i0 for ST v4
Barrie Treloar
baerrach at gmail.com
Wed Dec 22 16:44:11 PST 2010
On Wed, Dec 22, 2010 at 3:27 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
>
> On Dec 21, 2010, at 8:22 PM, Sam Harwell wrote:
>> This whole issue is an edge case of a larger "problem" I'm facing - I wish
>> that templates with one unassigned argument could be used any place a
>> template with a single arg can be used. From your bold(x) example, what I
>> mean is this:
>>
>> format(tag,x) ::= "<$tag$>$x$</$tag$>"
>>
>> <names:format(tag="b")>
>>
>> The anonymous template version this is exactly what you suggested, with
>> exactly 1 named but unassigned parameter and 0 or more named assignments.
>
> That is exactly how v4 works :) First arg(s) get values. 'cept no names:
Can you expand on that, or link to documentation, please?
>From the little lurker understanding I have this feels black magicish
and something I'm bound to forget and bump into.
Cheers
More information about the stringtemplate-interest
mailing list