projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b4d79
)
MOD, FLOOR
author
David Vazquez
<davazp@gmail.com>
Mon, 17 Dec 2012 18:46:59 +0000
(18:46 +0000)
committer
David Vazquez
<davazp@gmail.com>
Mon, 17 Dec 2012 18:46:59 +0000
(18:46 +0000)
lispstrack.lisp
patch
|
blob
|
history
diff --git
a/lispstrack.lisp
b/lispstrack.lisp
index
969567f
..
7bb6945
100644
(file)
--- a/
lispstrack.lisp
+++ b/
lispstrack.lisp
@@
-385,6
+385,12
@@
(define-compilation = (x y)
(concat "((" (ls-compile x env fenv) ") == (" (ls-compile y env fenv) "))"))
+(define-compilation mod (x y)
+ (concat "((" (ls-compile x env fenv) ") % (" (ls-compile y env fenv) "))"))
+
+(define-compilation floor (x)
+ (concat "(Math.floor(" (ls-compile x env fenv) "))"))
+
(define-compilation null (x)
(concat "(" (ls-compile x env fenv) "== undefined)"))