(tokens->sexpr parser tokens)
Takes a Parser and a CommonTokenStream and emits a lazy sequence of (:SOME_TYPE "str") pairs for the tokens in the stream.
Takes a Parser and a CommonTokenStream and emits a lazy sequence of (:SOME_TYPE "str") pairs for the tokens in the stream.
(tree->sexpr m)
Takes a map with a :tree node and a :parser (required for interpreting the indices of rule nodes as rule names), and returns a lazily evaluated tree, where each tree is either a string, or a sequence composed of a rule name followed by that rule's child trees. For instance:
(:json (:object "{" (:pair "age" ":" (:value "53"))))
Takes a map with a :tree node and a :parser (required for interpreting the indices of rule nodes as rule names), and returns a lazily evaluated tree, where each tree is either a string, or a sequence composed of a rule name followed by that rule's child trees. For instance: (:json (:object "{" (:pair "age" ":" (:value "53"))))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close