[stringtemplate-interest] "\n" goes away
Zenaan Harkness
zen at freedbms.net
Tue Oct 13 23:21:29 PDT 2009
BTW, to everyone, are there any objections to a "please bottom-post if
you remember" convention? I find bottom-posting to be much clearer to
follow later on... (also it's an age-old internet convention...)
On Tue, Oct 13, 2009 at 08:41:47PM -0700, Bill Venners wrote:
> Hi Terence,
>
> How about a newline keyword? Something like:
>
> <expr; separator=newline>
>
> Verbose, and an extra keyword, but clear.
Hi Bill, how would you then write a separator of 'two spaces, followed
by a newline, follwed by a single tab character, followed by two more
spaces'??
> 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
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
--
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.
More information about the stringtemplate-interest
mailing list