[stringtemplate-interest] StringTemplate extension ideas

Terence Parr parrt at cs.usfca.edu
Mon May 1 19:38:25 PDT 2006


On May 1, 2006, at 5:25 PM, Kunle Odutola wrote:

>> Yep. Allowing my example to be re-written as:
>>
>>    $target(t=outer.Attrib:{outerAtrribute | This is an  
>> $outerAtrribute$})$
>
> Unfortunately, this doesn't seem to extend to multiple attributes.
>
> $target(t=A, B:{a, b | These are  outer atrribute $a$ and $b$})$

Yes, that would be ambiguous syntactically.  Does the ',' after the A  
mean start a new parameter?  Perhaps

$target(t={$A, B:{a, b | These are  outer atrribute $a$ and $b$}$})$

:)

Ter



More information about the stringtemplate-interest mailing list