Clojure's (instaparse) parser. It can be used as:
For a description of all possible options, visit Instaparse's official documentation: https://github.com/Engelberg/instaparse#reference
Clojure's (instaparse) parser. It can be used as: - (parcera/clojure input-string) -> returns an AST representation of input-string - (instaparse/parse parcera/clojure input-string) -> same as above but more explicit - (instaparse/parses parcera/clojure input-string) -> returns a sequence of possible AST representations in case of ambiguity in input-string For a description of all possible options, visit Instaparse's official documentation: https://github.com/Engelberg/instaparse#reference
(code ast)
Transforms your AST back into code
Args:
ast: The nested sequence of [:keyword & content] which MUST follow the
same structure as the result of (parcera/clojure input-string)
Returns: A string representation of the provided AST
In general (= input (parcera/code (parcera/clojure input)))
Transforms your AST back into code Args: ast: The nested sequence of [:keyword & content] which MUST follow the same structure as the result of `(parcera/clojure input-string)` Returns: A string representation of the provided AST In general `(= input (parcera/code (parcera/clojure input)))`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close