|
From: | Patrick Li |
Subject: | Re: [Chicken-users] Implementing a macroexpand-all |
Date: | Sat, 12 Feb 2011 12:18:30 -0500 |
On Sat, Feb 12, 2011 at 11:52:40AM -0500, Patrick Li wrote:What version of Chicken are you using?
> 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)
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
[Prev in Thread] | Current Thread | [Next in Thread] |