Compare commits

..

No commits in common. "608ab4ab67ecb314f7282246e6c1b7bc328ec359" and "8d3d9a2dc52d9352f51def15838dbf73b10b22c6" have entirely different histories.

2 changed files with 5 additions and 8 deletions

View File

@ -221,11 +221,9 @@
", ")) ", "))
(defn- stringify* [value] (defn- stringify* [value]
(print "stringifying " (string value)) (def typed? (when (dictionary? value) (value :^type)))
(def typed? (when (dictionary? value)
(print "value is a dictionary")
(value :^type)))
(def type (if typed? typed? (type value))) (def type (if typed? typed? (type value)))
(print "stringifying " (string value))
(case type (case type
:nil "" :nil ""
:number (string value) :number (string value)
@ -240,7 +238,6 @@
:set :set
(string/join (map stringify (keys value)) ", ") (string/join (map stringify (keys value)) ", ")
:ref (stringify (value :^value)) :ref (stringify (value :^value))
:fn (string "fn " (value :name))
# XXX: pkg, fn # XXX: pkg, fn
)) ))
@ -505,9 +502,10 @@
(do (do
(set source ` (set source `
#{:a 1, :b 2} fn foo () -> :foo
let bar = #{foo}
bar :foo ()
`) `)
(def result (run)) (def result (run))
(stringify result)
) )

View File

@ -615,7 +615,6 @@ Imports are for a later iteration of Ludus:
:use (usee validator) :use (usee validator)
:loop (loopp validator) :loop (loopp validator)
:recur (recur validator) :recur (recur validator)
:ref (ref validator)
(error (string "unknown node type " type))))) (error (string "unknown node type " type)))))
(set validate validate*) (set validate validate*)