|
From: | Alex Shinn |
Subject: | Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes) |
Date: | Tue, 28 May 2013 09:33:14 +0900 |
For the backslash escapes inside strings, we already had everything
that R7RS dictates, except for two things: hex escapes and
\<intraline whitespace>*<newline><intraline whitespace>* syntax.
I think the former is useful, but it's rather tricky so I want to
take my time implementing it. The latter is silly and rather pointless,
but I've implemented it for completeness.
Note that Chibi's behavior seems to be incorrect wrt to the spec.
The string: "\
x" should be read like "\n\nx", I think. Chibi drops all the
whitespace and newlines, instead of just the whitespace surrounding
the *first* newline. I've made Chicken follow what I think is what
the spec says.
There's also escaped strings without newlines like "\ foo".
It's unspecified what an implementation should do with that, like
any other escaped character (like, for example, "\p").
[Prev in Thread] | Current Thread | [Next in Thread] |