projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b3df5f
)
null is not primitive
author
David Vazquez
<davazp@gmail.com>
Fri, 4 Jan 2013 00:56:23 +0000
(
00:56
+0000)
committer
David Vazquez
<davazp@gmail.com>
Fri, 4 Jan 2013 00:56:23 +0000
(
00:56
+0000)
lispstrack.lisp
patch
|
blob
|
history
diff --git
a/lispstrack.lisp
b/lispstrack.lisp
index
f6aaee0
..
96a38ee
100644
(file)
--- a/
lispstrack.lisp
+++ b/
lispstrack.lisp
@@
-62,6
+62,9
@@
(defvar t (make-symbol "T"))
(set *package* "T" t)
+ (defun null (x)
+ (eq x nil))
+
(defun internp (name)
(in name *package*))
@@
-967,8
+970,6
@@
(define-builtin floor (x) (concat "(Math.floor(" x "))"))
-(define-builtin null (x) (compile-bool (concat "(" x "===" (ls-compile nil env fenv) ")")))
-
(define-builtin cons (x y) (concat "({car: " x ", cdr: " y "})"))
(define-builtin consp (x)
(compile-bool