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:
47b94d7
)
Fixed pair read/print.
author
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 10 Jul 2016 04:25:01 +0000
(16:25 +1200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 10 Jul 2016 04:25:01 +0000
(16:25 +1200)
scheme.4th
patch
|
blob
|
history
diff --git
a/scheme.4th
b/scheme.4th
index
75055ff
..
63a3420
100644
(file)
--- a/
scheme.4th
+++ b/
scheme.4th
@@
-394,14
+394,14
@@
defer read
;
: printnil ( nilobj -- )
- drop ." ()" ;
+
2
drop ." ()" ;
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
;