chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Implementing a macroexpand-all


From: Patrick Li
Subject: Re: [Chicken-users] Implementing a macroexpand-all
Date: Sat, 12 Feb 2011 11:52:40 -0500

After full expansion, you should get ##core#lambda, which is the "core"
lambda.

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)

 (expand (expand '(mymacro)))
=> (lambda1020 () 3)

How do I get it to expand to:
(##core#lambda () 3)

  -Patrick

reply via email to

[Prev in Thread] Current Thread [Next in Thread]