The Lambda Lab
/
projects
/
scheme.forth.jl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First primitive procedure working!
[scheme.forth.jl.git]
/
scheme.4th
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 -- )
;
: add-prim ( args -- )
- nil objeq? if
+ 2dup nil objeq? if
+ 2drop
0 number-type
else
2dup cdr recurse drop
0 number-type
else
2dup cdr recurse drop
@@
-821,7
+822,7
@@
defer eval
: true? ( boolobj -- bool )
false? invert ;
: true? ( boolobj -- bool )
false? invert ;
-: applicaion? ( obj -- obj bool)
+: applica
t
ion? ( obj -- obj bool)
pair-type istype? ;
: operator ( obj -- operator )
pair-type istype? ;
: operator ( obj -- operator )