fixing bug in macroexpand on lambdas
This commit is contained in:
parent
4cb9685266
commit
c076be667b
|
@ -111,6 +111,10 @@
|
||||||
(if f
|
(if f
|
||||||
(macroexpand-in (apply f (cdr e)) env)
|
(macroexpand-in (apply f (cdr e)) env)
|
||||||
(cond ((eq (car e) 'quote) e)
|
(cond ((eq (car e) 'quote) e)
|
||||||
|
((eq (car e) 'lambda)
|
||||||
|
(nlist* 'lambda (cadr e)
|
||||||
|
(macroexpand-in (caddr e) env)
|
||||||
|
(cdddr e)))
|
||||||
((eq (car e) 'let-syntax)
|
((eq (car e) 'let-syntax)
|
||||||
(let ((binds (cadr e))
|
(let ((binds (cadr e))
|
||||||
(body (f-body (cddr e))))
|
(body (f-body (cddr e))))
|
||||||
|
|
Loading…
Reference in New Issue