Re: Expanding macros

2012-10-02 Thread Ludovic Courtès
Hi, Panicz Maciej Godek skribis: > By the way, the (undocumented, as of 2.0.5) decompile > function returns two values -- the first being the expanded expression > and the second -- #f. > As I've figured out from system/base/compile, the second return value > is the environment, but I've been wo

Re: Expanding macros

2012-09-28 Thread Panicz Maciej Godek
Bonjour, > There’s the ,expand command at the REPL. > > It’s implemented like this: > > (define (repl-expand repl form) > (let ((from (repl-language repl)) > (opts (repl-compile-options repl))) > (decompile (compile form #:from from #:to 'tree-il #:opts opts >

Re: Expanding macros

2012-09-27 Thread Ludovic Courtès
Hi, Panicz Maciej Godek skribis: > 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): > >