Remove repl cruft
This commit is contained in:
parent
4fd593752b
commit
0fe85cf2ed
|
@ -256,44 +256,3 @@
|
|||
(def script (order-0 :script [nls?
|
||||
(one+ script-line)
|
||||
(quiet :eof)]))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;; REPL CRUFT
|
||||
|
||||
;;TODO: fix forward declaration errors
|
||||
|
||||
|
||||
(def eg (:tokens (scan/scan
|
||||
"
|
||||
test \"foo\" bar
|
||||
"
|
||||
)))
|
||||
|
||||
|
||||
|
||||
(def result (apply-parser script eg))
|
||||
|
||||
|
||||
(defn report [node]
|
||||
(when (fail? node) (err-msg node))
|
||||
node)
|
||||
|
||||
(defn clean [node]
|
||||
(if (map? node)
|
||||
(-> node
|
||||
(report)
|
||||
(dissoc
|
||||
:status
|
||||
:remaining
|
||||
:token)
|
||||
(update :data #(into [] (map clean) %)))
|
||||
node))
|
||||
|
||||
(defn tap [x] (println "\n\n\n\n******NEW PARSE\n\n:::=> " x "\n\n") x)
|
||||
|
||||
(def my-data (-> result
|
||||
clean
|
||||
tap
|
||||
))
|
||||
|
||||
my-data
|
Loading…
Reference in New Issue
Block a user