Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-30 Thread Moritz Heidkamp
Peter Bex peter@xs4all.nl writes: The attached patch supplements Peter's to handle these cases. I've signed this off, and added a few test cases for this as well. Find this version attached. Tested, signed off and pushed. Thanks! Moritz ___

Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-27 Thread Peter Bex
On Sun, May 26, 2013 at 09:30:39PM -0700, Evan Hanson wrote: On 2013/05/26 11:09P, Peter Bex wrote: Here are two patches for adding R7RS named character and string escapes sequences. I don't believe the second patch is sufficient for adding intraline whitespace escapes; it only handles

Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-27 Thread Alex Shinn
On Mon, May 27, 2013 at 6:09 AM, Peter Bex peter@xs4all.nl wrote: For the backslash escapes inside strings, we already had everything that R7RS dictates, except for two things: hex escapes and \intraline whitespace*newlineintraline whitespace* syntax. I think the former is useful, but

Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-27 Thread John Cowan
Alex Shinn scripsit: It's unspecified what an implementation should do with that, like any other escaped character (like, for example, \p). This is intentionally unspecified - you can do what you like here. A pedantic impl would signal an error. Indeed. If things like \p were specified

[Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-26 Thread Peter Bex
Hi all, Here are two patches for adding R7RS named character and string escapes sequences. Turns out the r7rs-tasks wiki page is incorrect; we already had \a and #\alarm support. The only two standard named characters that needed to be added was #\null (where we had #\nul) and #\escape where we

Re: [Chicken-hackers] [PATCH] Add support for R7RS named characters and string escapes (except hex escapes)

2013-05-26 Thread Evan Hanson
On 2013/05/26 11:09P, Peter Bex wrote: Here are two patches for adding R7RS named character and string escapes sequences. I don't believe the second patch is sufficient for adding intraline whitespace escapes; it only handles LF-terminated lines, while R7RS specifies that CR, CRLF and LF line