guile-user
[Top][All Lists]
Advanced

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

Expanding macros


From: Panicz Maciej Godek
Subject: Expanding macros
Date: Mon, 24 Sep 2012 23:47:55 +0200

Hey,
is there any legitimate way to expand the scheme macros
to the scheme code in guile 2.0?
The macroexpand procedure seems only to compile the code
to the tree-il language (no matter whether 'e, 'c or any other
symbol is passed as a second argument):

(macroexpand '(define (f a b) (list a b)) 'e)
; ===> #<tree-il (define f (lambda ((name . f)) (lambda-case (((a b)
#f #f #f () (a-4236 b-4237)) (apply (toplevel list) (lexical a a-4236)
(lexical b b-4237))))))

thanks
MG



reply via email to

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