The Lambda Lab
/
projects
/
scheme.forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8772ce0
)
First primitive procedure working!
author
Tim Vaughan
<tgvaughan@gmail.com>
Tue, 19 Jul 2016 10:27:20 +0000
(22:27 +1200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Tue, 19 Jul 2016 10:27:20 +0000
(22:27 +1200)
scheme.4th
patch
|
blob
|
history
diff --git
a/scheme.4th
b/scheme.4th
index
fa53d67
..
23c7f2b
100644
(file)
--- a/
scheme.4th
+++ b/
scheme.4th
@@
-278,7
+278,8
@@
global-env setobj
;
: add-prim ( args -- )
- nil objeq? if
+ 2dup nil objeq? if
+ 2drop
0 number-type
else
2dup cdr recurse drop
@@
-821,7
+822,7
@@
defer eval
: true? ( boolobj -- bool )
false? invert ;
-: applicaion? ( obj -- obj bool)
+: applica
t
ion? ( obj -- obj bool)
pair-type istype? ;
: operator ( obj -- operator )