X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lispstrack.lisp;h=7bb69452c0521fee1feef8b69837cafb17f7e819;hb=303beabd731556a15a88141af6e84808c8ed425f;hp=969567fba7a245e3ca86c287254058cf1d319c0f;hpb=a1b4d7958b5940f9eb3d412d1f930767b19fc869;p=jscl.git diff --git a/lispstrack.lisp b/lispstrack.lisp index 969567f..7bb6945 100644 --- 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)"))