(define stringify
[] -> "()"
[skip] -> ")"
X -> (str X) where (not (cons? X))
[skip X | Y] -> (@s (stringify X) " " (stringify [skip | Y]) )
[X | Y] -> (@s "(" (stringify X) " " (stringify [skip | Y]) ))
(defmacro quote
[test X Y Z] -> [test X Y (stringify Z)])
(define test
X Y Z -> [X Y Z])
This code fails to load
(0-) (load "simulator.shen")
fn: stringify is undefined
when I define stringify in the repl and then load
Heap exhausted during allocation: 119865344 bytes available, 260046856 requested.
Immobile Object Counts
Gen layout fdefn symbol code Boxed Cons Raw Code SmMix Mixed LgRaw LgCode LgMix Waste% Alloc Trig Dirty GCs Mem-age