From: Tim Vaughan Date: Sun, 10 Jul 2016 04:25:01 +0000 (+1200) Subject: Fixed pair read/print. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=scheme.forth.jl.git;a=commitdiff_plain;h=f95f47dbec94087af4452f20e9eca72fb7f299c8 Fixed pair read/print. --- diff --git a/scheme.4th b/scheme.4th index 75055ff..63a3420 100644 --- a/scheme.4th +++ b/scheme.4th @@ -394,14 +394,14 @@ defer read ; : printnil ( nilobj -- ) - drop ." ()" ; + 2drop ." ()" ; defer print : printpair ( pairobj -- ) 2dup car print cdr - nil-type istype? if 2drop ." )" exit then + nil-type istype? if 2drop exit then pair-type istype? if space recurse exit then ." . " print ;