Liking cljdoc? Tell your friends :D
Clojure only.

crustimoney.quick

A namespace for those quick "I need something better than a regex"-moments.

A namespace for those quick "I need something better than a
regex"-moments.
raw docstring

parseclj

(parse definition text)

Parse text using the string- or data parser definition. The predefined parsers from the built-ins namespace are available.

A success result is transformed such that each node is a map, where the node's name contains the matched text and the nil key contains its children (if any). For example:

(parse "'alice' (' and ' (:who word))+"
       "alice and bob and eve")

=> {nil ({:who "bob"} {:who "eve"})}

When the result is an error, nil is returned.

Parse `text` using the string- or data parser `definition`.
The predefined parsers from the `built-ins` namespace are available.

A success result is transformed such that each node is a map, where
the node's name contains the matched text and the `nil` key contains
its children (if any). For example:

    (parse "'alice' (' and ' (:who word))+"
           "alice and bob and eve")

    => {nil ({:who "bob"} {:who "eve"})}

When the result is an error, nil is returned.
sourceraw docstring

transformclj

(transform result text)

Transform a success result to the 'quick' format, nil otherwise.

Transform a success result to the 'quick' format, nil otherwise.
sourceraw docstring

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

× close