[parenscript-devel] Macroexpand doesn't work
Daniel Gackle
danielgackle at gmail.com
Thu Sep 13 01:09:01 UTC 2007
Great, thanks.
On 9/12/07, Vladimir Sedach <vsedach at gmail.com> wrote:
>
> On 9/12/07, Daniel Gackle <danielgackle at gmail.com> wrote:
> > (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.
>
> ParenScript doesn't shadow macroexpand or macroexpand-1. What you're
> looking for is ps::ps-macroexpand (I didn't make a -1 version or
> export it).
>
> > 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.
>
> It is annoying. Hopefully when I rewrite the printer using more format
> and less loop that will go away without me having to do any extra
> work.
>
> Vladimir
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20070912/8b2ece39/attachment.html>
More information about the parenscript-devel
mailing list