(js:js (+ 42 '"FoooFFFOFOFooo")) => "42 + FoooFFFOFOFooo;"
IOW, quote inside a parenscript form means to simply print the quoted
value as-is. Among other things, this is useful for inserting literal
javascript into parenscript. I hope it will not break anything.
(declare (ignore start-form))
(list (symbol-to-js (value v))))
+;;; quote
+
+(defjsclass js-quote (expression)
+ ())
+
;;; arithmetic operators
(eval-when (:compile-toplevel :load-toplevel :execute)
(make-instance 'js-variable :value form))))
((and (consp form)
(eql (first form) 'quote))
- (second form))
+ (make-instance 'js-quote :value (second form)))
((consp form)
(js-compile-list form))
(t (error "Unknown atomar expression ~S" form))))