[parenscript-devel] How to generate comments?

Bastian Müller bastian at turbolent.com
Sat Aug 21 12:46:01 UTC 2010


On 08/20/2010 10:32 PM, Bastian Müller wrote:

Hi,

> Sorry if this has been asked already earlier here on the list. I looked
> into the reference documentation, but couldn't find anything. Is it
> possible to generate JavaScript comments, or even more generalized,
> inline any JavaScript inside parenscript code?

I'm new to parenscript's internals, so maybe that's not the correct way, 
but here's a small patch that allows something like:

(ps (comment #?"Foo\nbar"))
;; =>
;; "/* Foo
;; bar */;"

Cheers
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: parenscript-comment.patch
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20100821/3618624f/attachment.ksh>


More information about the parenscript-devel mailing list