Liking cljdoc? Tell your friends :D

parcera.core


clojureclj/s

Clojure (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

Clojure (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
sourceraw docstring

codeclj/s

(code ast)

Transforms your AST back into code

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

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)))
sourceraw docstring

grammarclj/s

source

grammar-rulesclj/s

source

grammar-terminalsclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close