From: Tim Vaughan Date: Tue, 19 Jul 2016 10:27:20 +0000 (+1200) Subject: First primitive procedure working! X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=b66fe905114c4da70620604f47e57b8d877ed72c;p=scheme.forth.jl.git First primitive procedure working! --- diff --git a/scheme.4th b/scheme.4th index fa53d67..23c7f2b 100644 --- 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) +: application? ( obj -- obj bool) pair-type istype? ; : operator ( obj -- operator )