[stringtemplate-interest] "\n" goes away
Zenaan Harkness
zen at freedbms.net
Thu Oct 15 20:26:16 PDT 2009
On Thu, Oct 15, 2009 at 11:54:09AM -0700, Terence Parr wrote:
>
> On Oct 15, 2009, at 1:32 AM, Koerner, Ron wrote:
> >> Ah. good point. now it would be:
> >>
> >> separator={ <\n> }
> >>
> >> I guess that's not horrible, but...
> >>
> >> Ter
> >
> > What about both? Allow:
> >
> > <expr; sep=nl>
> >
>
> I'm worried about introducing another keyword. would "nl" be
> disallowed then as an attribute?
Are you saying nl could be treated as an attribute OR as a template?
I do like the cleanliness of treating 'specials' as just templates.
So what's the syntax context in this case? MUST nl (in
"<expr; sep=nl>") be only attr or template, or could it be either?
And if, as mentioned elsewhere, such specials are contained in an "ST
standard library", and combined in with some sort of
multiple-inheritance, then alternative "standard libraries" could always
be created by those who really want something a little different...
zen
--
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