[stringtemplate-interest] "\n" goes away
Terence Parr
parrt at cs.usfca.edu
Tue Oct 13 16:14:23 PDT 2009
Hi, i allowed
<expr; separator="\n">
previously to mean newline separator, but that makes no sense. "\n"
is a 2 char sequence just like it is in between template expressions.
But making you do
<expr; separator={<\n>}>
is a bit long. It's *always* comma or newline. seems we should make
it easier to say. we use it constantly.
As far as i can tell, we have these options: wrap, anchor, null,
separator, format. Is there a better way to do those too? How would
we do this differently?
<values; anchor, wrap="\n", separator=",">
Ideas? I've wrestled with this for years and can't come up with
better syntax.
Ter
More information about the stringtemplate-interest
mailing list