[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [guile-reader-devel] Guile-Bash reader extensions
From: |
Dmitry Bogatov |
Subject: |
Re: [guile-reader-devel] Guile-Bash reader extensions |
Date: |
Mon, 8 Jun 2015 18:11:33 +0300 |
User-agent: |
Mutt/1.5.23.1-rc1 (2014-03-12) |
> > Okay, what about providing means to create symbol readers?
> > I mean provide procedure (make-symbol-token-reader
> > first-char-predicate). This way it would be possible to
> > replace default one with TR, that does not accept $symbols.
>
> What about something like this:
>
> --8<---------------cut here---------------start------------->8---
> scheme@(guile-user)> (standard-token-reader 'r6rs-symbol-misc-chars)
> $6 = #<token-reader 2d75f80>
> scheme@(guile-user)> (token-reader-specification $6)
> $7 = (#\{ #\} #\~ #\^ #\: #\/ #\* #\% #\& #\@ #\_ #\< #\> #\! #\= #\? #\$)
> scheme@(guile-user)> (make-token-reader (delq #\$ (token-reader-specification
> $6))
> (token-reader-procedure $6))
> $8 = #<token-reader 2d75f40>
> --8<---------------cut here---------------end--------------->8---
Looks like solution. Thank you.
--
Best regards, Dmitry Bogatov <address@hidden>,
Free Software supporter, esperantisto and netiquette guardian.
GPG: 54B7F00D
pgpOHGKOnuRot.pgp
Description: PGP signature
- Re: [guile-reader-devel] guile-reader releases, (continued)
- Re: [guile-reader-devel] guile-reader releases, Dmitry Bogatov, 2015/06/04
- Re: [guile-reader-devel] guile-reader releases, Ludovic Courtès, 2015/06/04
- Message not available
- Re: [guile-reader-devel] guile-reader releases, Ludovic Courtès, 2015/06/05
- Message not available
- [guile-reader-devel] Guile-Bash reader extensions, Ludovic Courtès, 2015/06/05
- Re: [guile-reader-devel] Guile-Bash reader extensions, Dmitry Bogatov, 2015/06/06
- Re: [guile-reader-devel] Guile-Bash reader extensions, Ludovic Courtès, 2015/06/06
- Re: [guile-reader-devel] Guile-Bash reader extensions, Dmitry Bogatov, 2015/06/06
- Re: [guile-reader-devel] Guile-Bash reader extensions, Ludovic Courtès, 2015/06/07
- Re: [guile-reader-devel] Guile-Bash reader extensions, Dmitry Bogatov, 2015/06/07
- Re: [guile-reader-devel] Guile-Bash reader extensions, Ludovic Courtès, 2015/06/08
- Re: [guile-reader-devel] Guile-Bash reader extensions,
Dmitry Bogatov <=