[stringtemplate-interest] escape char
Terence Parr
parrt at cs.usfca.edu
Mon Oct 12 17:37:03 PDT 2009
well, what if i'm generating latex with all it's \box and \tt
commands? My rule is that i completely ignore everything outside of
expressions like <...>. So, it wouldn't make sense to convert \u0009
to a tab for example.
Ter
On Oct 12, 2009, at 5:34 PM, Zenaan Harkness wrote:
> 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.
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list