HCoop
/
clinton
/
parenscript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c0e6d
)
Added binary negation ~ operator.
author
Vladimir Sedach
<vsedach@gmail.com>
Sat, 16 Jun 2007 04:59:12 +0000
(
04:59
+0000)
committer
Vladimir Sedach
<vsedach@gmail.com>
Sat, 16 Jun 2007 04:59:12 +0000
(
04:59
+0000)
src/js.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/js.lisp
b/src/js.lisp
index
4696be2
..
94973c0
100644
(file)
--- a/
src/js.lisp
+++ b/
src/js.lisp
@@
-654,6
+654,10
@@
vice-versa.")
(make-instance 'one-op :pre-p t :op "!"
:value value))))
+(define-js-compiler-macro ~ (x)
+ (let ((expr (js-compile-to-expression x)))
+ (make-instance 'one-op :pre-p t :op "~" :value expr)))
+
;;; function calls
(defjsclass function-call (expression)