Remove faulty quoting logic in parser.

This commit is contained in:
Calvin Rose
2017-05-07 18:20:11 -04:00
parent 96a605fbc0
commit 6d3e3d8246
6 changed files with 104 additions and 39 deletions
+7 -1
View File
@@ -7,6 +7,7 @@
(: seen (if seen seen {}))
(if (get seen a) (get seen a)
(do
(set! seen a "<cycle>")
(: parts [])
(: len (length a))
(: i 0)
@@ -25,6 +26,7 @@
(: seen (if seen seen {}))
(if (get seen s) (get seen s)
(do
(set! seen s "<cycle>")
(: parts [])
(: key (next s))
(while (not (= key nil))
@@ -54,6 +56,10 @@
(handler x seen)))
"Export pretty print"
(export! 'pp pp)
(export! "pp" pp)
(: arr [1 2 3 4])
(push! arr arr)
(print (pp arr))
)