This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: R5RS macro
- From: Per Bothner <per at bothner dot com>
- To: 62945 <62945 at bol dot com dot br>
- Cc: kawa <kawa at sources dot redhat dot com>
- Date: Sun, 27 Jun 2004 07:03:17 -0700
- Subject: Re: R5RS macro
- References: <HZVQ35$59B5EE7D198F64DEB55B235BDBB00972@bol.com.br>
62945 wrote:
kawa doesn't like the macro:
(define-syntax macro-chain
(syntax-rules ()
((macro-chain . z)
(letrec-syntax
((m1 (syntax-rules () ((m1 x) (id (m2 x)))))
(m2 (syntax-rules () ((m2 x) (id (m3 x)))))
(m3 (syntax-rules () ((m3 x) (quote x))))
(id (syntax-rules () ((id x) x))))
(m1 z)))))
it seems R5RS compliant, scheme48 and sisc accept it.
Thanks for the bug report, but it's not quite complete.
The CVS version of Kawa has no problems with this macro
definition. If you mean its macro expansion doesn't work,
you need to include an example in your bug report.
It's also a good idea to mention which Kawa version
you're using. I prefer tests against the CVS version,
but if that is difficult, the newer the better,
It's probably best to report bugs using the bugzilla interface
- see http://www.gnu.org/software/kawa/Mailing-lists.htm .
That way they're not lost if I don't have time to do anything
about them soon.
There are areas where Kawa's macros processor is not quite
100% R5RS comptible. It will probably take a while before
I have time to "finish up" macro handling (including syntax-case).
--
--Per Bothner
per@bothner.com http://per.bothner.com/