[stringtemplate-interest] "\n" goes away
Bill Venners
bill at artima.com
Tue Oct 13 20:41:47 PDT 2009
Hi Terence,
How about a newline keyword? Something like:
<expr; separator=newline>
Verbose, and an extra keyword, but clear.
Bill
On Tue, Oct 13, 2009 at 4:14 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> 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
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
--
Bill Venners
Artima, Inc.
http://www.artima.com
More information about the stringtemplate-interest
mailing list