[gambit-list] debugging macros
eryiling
eryiling at gmail.com
Tue Jan 27 14:34:39 EST 2009
suppose I have:
(define-macro (foo ...))
the standard way to 'debug' this is to do:
(pp (lambda () (foo ...)))
however, this requires that (foo ...) expands to proper scheme code (i.e.
not things like "(a b . c)"), and also code that has well defined semantic
meaning (i.e. no undefined vars)
as i write macros, i find that most of the time (in fact, except for the
starting point and the ending point), my macro expansion offten results in
non-scheme code; is there a way i can see this output? i.e. I wnat to see:
(macroexpand '(foo ...))
rather than the particular error for why (foo ... ) does not expand to legit
scheme code
thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090127/992f5e0e/attachment.htm>
More information about the Gambit-list
mailing list