* bug in syntax-case in master
@ 2012-05-16 18:57 Stefan Israelsson Tampe
2012-05-16 21:33 ` Stefan Israelsson Tampe
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Israelsson Tampe @ 2012-05-16 18:57 UTC (permalink / raw)
To: guile-devel
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
I'm trying to port syntax-parse to master. And get into the following
trubble
(syntax-case x (integrate) ((integrate a b) ...))
fails, but
(syntax-case x (integrate) ((_ a b) ...))
does not fail
looking at the code for syntax-case I would expect that the datum integrate
is
match against and not using syntax any syntactic information.
In psyntax.scm around 2419 we have,
((bound-id-member? p keys)
(values (vector 'free-id p) ids))
keys are the fixed datums, and
(define bound-id-member?
(lambda (x list)
(and (not (null? list))
(or (bound-id=? x (car list))
(bound-id-member? x (cdr list))))))
e.g. no comparisons of the datum.
Is this correct! I do understand that this can be a feature but is this
expected?
In syntax parse both options are possible.
/Regards
Stefan
[-- Attachment #2: Type: text/html, Size: 960 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug in syntax-case in master
2012-05-16 18:57 bug in syntax-case in master Stefan Israelsson Tampe
@ 2012-05-16 21:33 ` Stefan Israelsson Tampe
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Israelsson Tampe @ 2012-05-16 21:33 UTC (permalink / raw)
To: guile-devel
[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]
I have found the bug, It was because of the bug fixed in
master got a bug in my code visible!
/Stefan
---------- Forwarded message ----------
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Date: Wed, May 16, 2012 at 8:57 PM
Subject: bug in syntax-case in master
To: guile-devel <guile-devel@gnu.org>
I'm trying to port syntax-parse to master. And get into the following
trubble
(syntax-case x (integrate) ((integrate a b) ...))
fails, but
(syntax-case x (integrate) ((_ a b) ...))
does not fail
looking at the code for syntax-case I would expect that the datum integrate
is
match against and not using syntax any syntactic information.
In psyntax.scm around 2419 we have,
((bound-id-member? p keys)
(values (vector 'free-id p) ids))
keys are the fixed datums, and
(define bound-id-member?
(lambda (x list)
(and (not (null? list))
(or (bound-id=? x (car list))
(bound-id-member? x (cdr list))))))
e.g. no comparisons of the datum.
Is this correct! I do understand that this can be a feature but is this
expected?
In syntax parse both options are possible.
/Regards
Stefan
[-- Attachment #2: Type: text/html, Size: 1566 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-16 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 18:57 bug in syntax-case in master Stefan Israelsson Tampe
2012-05-16 21:33 ` Stefan Israelsson Tampe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).