[parenscript-devel] Macroexpand doesn't work

Daniel Gackle danielgackle at gmail.com
Wed Sep 12 22:24:31 UTC 2007


(defpsmacro blah () 123) => NIL
(ps (blah)) => "123;"

but:

(ps::macroexpand-1 '(blah)) => (BLAH)

Wouldn't one expect this to provide the macroexpansion? I can't find
anything in Parenscript now corresponding to expand-form or whatever it used
to be called.

Daniel

p.s. I wrote "123;" above for neatness, but PS actually emits
"123;\n". Seems the newline should only be there when more than one line of
JS is generated. It's a minor point, but noticeable when working from the
REPL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20070912/56867852/attachment.html>


More information about the parenscript-devel mailing list