called keywords work in pipelines
This commit is contained in:
parent
9e50f0cbdf
commit
9ddb43a30f
|
@ -460,6 +460,7 @@
|
||||||
[:function :tuple] (call-fn root-ast prev curr)
|
[:function :tuple] (call-fn root-ast prev curr)
|
||||||
# [:applied :tuple] (call-partial root-ast prev curr)
|
# [:applied :tuple] (call-partial root-ast prev curr)
|
||||||
[:keyword :args] (get (first curr) prev :^nil)
|
[:keyword :args] (get (first curr) prev :^nil)
|
||||||
|
[:keyword :tuple] (get (first curr) prev :^nil)
|
||||||
[:dict :keyword] (get prev curr :^nil)
|
[:dict :keyword] (get prev curr :^nil)
|
||||||
[:nil :keyword] :^nil
|
[:nil :keyword] :^nil
|
||||||
[:pkg :keyword] (get prev curr :^nil)
|
[:pkg :keyword] (get prev curr :^nil)
|
||||||
|
@ -489,9 +490,9 @@
|
||||||
(def last-term (last terms))
|
(def last-term (last terms))
|
||||||
(for i 1 (-> terms length dec)
|
(for i 1 (-> terms length dec)
|
||||||
(def curr (interpret (terms i) ctx))
|
(def curr (interpret (terms i) ctx))
|
||||||
(set prev (call-fn (first terms) curr [prev])))
|
(set prev (apply-synth-term (first terms) curr [prev])))
|
||||||
(def last-fn (interpret last-term ctx))
|
(def last-fn (interpret last-term ctx))
|
||||||
(call-fn (first terms) last-fn [prev]))
|
(apply-synth-term (first terms) last-fn [prev]))
|
||||||
|
|
||||||
(defn- pkg [ast ctx]
|
(defn- pkg [ast ctx]
|
||||||
(def members (ast :data))
|
(def members (ast :data))
|
||||||
|
|
|
@ -53,21 +53,20 @@
|
||||||
|
|
||||||
(comment
|
(comment
|
||||||
# (do
|
# (do
|
||||||
(def start (os/clock))
|
# (def start (os/clock))
|
||||||
(def source `
|
(def source `
|
||||||
at ("aéc", 3)
|
|
||||||
`)
|
`)
|
||||||
(def out (-> source
|
(def out (-> source
|
||||||
ludus
|
ludus
|
||||||
j/decode
|
j/decode
|
||||||
))
|
))
|
||||||
(def end (os/clock))
|
# (def end (os/clock))
|
||||||
(setdyn :out stdout)
|
(setdyn :out stdout)
|
||||||
(pp out)
|
(pp out)
|
||||||
(def console (out "console"))
|
(def console (out "console"))
|
||||||
(print console)
|
(print console)
|
||||||
(def result (out "result"))
|
(def result (out "result"))
|
||||||
(print result)
|
(print result)
|
||||||
(print (- end start))
|
# (print (- end start))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user