unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Expanding macros
@ 2012-09-24 21:47 Panicz Maciej Godek
  2012-09-26 21:54 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Panicz Maciej Godek @ 2012-09-24 21:47 UTC (permalink / raw)
  To: guile-user

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-02 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 21:47 Expanding macros Panicz Maciej Godek
2012-09-26 21:54 ` Ludovic Courtès
2012-09-28 15:52   ` Panicz Maciej Godek
2012-10-02 14:04     ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).