[stringtemplate-interest] escape char
Zenaan Harkness
zen at freedbms.net
Mon Oct 12 17:34:48 PDT 2009
On Mon, Oct 12, 2009 at 01:56:57PM -0700, Terence Parr wrote:
> So, I'm leaning towards only \< or \$ being an escape sequence outside
> of expressions. \blech would be \blech in the output not blech. I
> thik that's how it is now.
Glad you asked :)
Very usefully, YAML (yaml.org) crowd have been deeply involved in just
this question, for yaml, in respect of UTF8 vs "Unicode" vs UTF16 etc.
So I refer you to the yaml-core mailing list. Specifically, the
following thread/ subject (it is split into two threads actually, the
first one being the main large one):
Invalid UTF-8
first thread kicked off by "William Spitzak", on 2009 08 18
second thread kicked off by "Blue GM", on 2009 09 03
I implore a reading of these discussions as have occurred in very useful
detail on yaml-core, as getting escapes 'right' (although more
particularly for a stream markup/ serialization syntax) is essential for
long term sanity. It would behoove us STians to not follow the same
sequence of not-quite-get-it-right three times in a row. Thankfully some
smart brains appeared on yaml-core to resolve the issues in the most
practical long-term way possible. Let's take advantage of that.
If that yaml discussion (Invalid UTF-8) rings true, then we can sort of
copy-n-paste the corresponding section on escapes in the YAML
Specification (oh, did I mention an ST spec might be a good thing? :) :)
Best
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