[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Implementing a macroexpand-all
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Implementing a macroexpand-all |
Date: |
Sat, 12 Feb 2011 18:04:43 +0100 |
User-agent: |
Mutt/1.4.2.3i |
On Sat, Feb 12, 2011 at 11:52:40AM -0500, Patrick Li wrote:
> I didn't understand what you mean by this part. How do I perform a "full
> expansion"?
> eg.
> (define-syntax mymacro (syntax-rules () ((mymacro) (lambda () 3))))
>
> (expand '(mymacro))
> => (lambda1020 () 3)
What version of Chicken are you using?
I see the following with 4.6.0 and 4.6.5:
#;1> (define-syntax mymacro (syntax-rules () ((mymacro) (lambda () 3))))
#;2> (expand '(mymacro))
(##core#lambda () 3)
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
- Re: [Chicken-users] Implementing a macroexpand-all, (continued)
- Re: [Chicken-users] Implementing a macroexpand-all, Christian Kellermann, 2011/02/11
- Re: [Chicken-users] Implementing a macroexpand-all, Felix, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all, Patrick Li, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all, Peter Bex, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all, Patrick Li, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all,
Peter Bex <=
- Re: [Chicken-users] Implementing a macroexpand-all, Patrick Li, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all, Peter Bex, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all, Patrick Li, 2011/02/12
- Re: [Chicken-users] Implementing a macroexpand-all, Patrick Li, 2011/02/12