Re: Needed: per-port reader options

2012-10-18 Thread Mark H Weaver
Section 2.1 of the R7RS (draft 6) explicitly says "The #!fold-case directive causes the read procedure to case-fold [...] each identifier and character name subsequently read from the same port." Here's the relevant excerpt: The following directives give explicit control over case folding.

Re: [PATCH] Implement SRFI-105 curly infix expressions.

2012-10-18 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> l...@gnu.org (Ludovic Courtès) writes: >>> My understanding was that the sweet-expressions folks already had >>> something, no? >> >> The implementation they have (which they call a "demo") reimplements the >> entire reader from

Re: Needed: per-port reader options

2012-10-18 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Hi Mark! > > Mark H Weaver skribis: > >> l...@gnu.org (Ludovic Courtès) writes: > > [...] > >>> Of course. I just meant that, if you can call ‘make-reader’ with >>> whatever options you’re interested in, instead of globally changing the >>> reader’s optio

Re: bug#12665: regexp fault for closing square bracket within character class

2012-10-18 Thread Mark H Weaver
Marijn writes: > ``Regular expressions crammed into string-syntax'' really needs to be > deprecated in Scheme implementations. SRE[1][2] is more expressive and > doesn't suffer from such exceptions. I wholehearted agree that SRE is far superior, and that we should implement SRE and strongly encou

Re: Needed: per-port reader options

2012-10-18 Thread Ludovic Courtès
Hi Mark! Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: [...] >> Of course. I just meant that, if you can call ‘make-reader’ with >> whatever options you’re interested in, instead of globally changing the >> reader’s option as is currently the case, then you’re halfway throug

Re: [PATCH] Implement SRFI-105 curly infix expressions.

2012-10-18 Thread Ludovic Courtès
Hi, Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: >> My understanding was that the sweet-expressions folks already had >> something, no? > > The implementation they have (which they call a "demo") reimplements the > entire reader from scratch. There are several problems with t

Re: bug#12665: regexp fault for closing square bracket within character class

2012-10-18 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18-10-12 11:44, Panicz Maciej Godek wrote: >> As documented in "Syntax of Regular Expressions" of the Emacs >> manual (to which section 6.15 of the Guile manual refers): >> >> To include a `]' in a character set, you must make it the first >> char

Re: [PATCH] Implement SRFI-105 curly infix expressions.

2012-10-18 Thread nalaginrut
On Tue, 2012-10-16 at 16:38 -0400, Mark H Weaver wrote: > l...@gnu.org (Ludovic Courtès) writes: > > My understanding was that the sweet-expressions folks already had > > something, no? > > The implementation they have (which they call a "demo") reimplements the > entire reader from scratch. Ther