[stringtemplate-interest] More than one argument in anonymous template.
hall_monty at rastar.merseine.nu
hall_monty at rastar.merseine.nu
Mon Nov 16 08:16:47 PST 2009
I'm creating a template to emit dot output. I keep getting an error
"unexpected token: foo". But, if I strip out the 2nd argument,
<foo(n.ShortName)> or <foo(s.ShortName)> works.
=============================
kung(n) ::= <<
<n.ShortName> [label="<n.Class.SimpleName>"]<";\n">
<n.Children:{ s | <foo(n.ShortName, s.ShortName)> }>
>>
foo(x, y) ::= <<
hello
>>
More information about the stringtemplate-interest
mailing list