Liking cljdoc? Tell your friends :D

zetta.combinators


<?>clj

(<?> p err-msg)

Allows to add an error message to a given parser p.

Allows to add an error message to a given parser p.
raw docstring

aroundclj

(around sep content)

Combinator that will apply the parser 'content' in between the parser 'sep.'

Combinator that will apply the parser 'content' in between the parser
'sep.'
raw docstring

choiceclj

(choice ps)

Combinator that tries to parse the input using each of the given parsers, it will halt on the first parser that can successfuly parse the input.

Combinator that tries to parse the input using each of the given parsers,
it will halt on the first parser that can successfuly parse the input.
raw docstring

manyclj

(many p)

Applies zero or more times a parser p.

Applies zero or more times a parser p.
raw docstring

many-tillclj

(many-till p end)

Applies the parser p zero or more times until the parser end is successful.

Applies the parser p zero or more times until the parser end is successful.
raw docstring

many1clj

(many1 p)

Applies one or more times a parser p.

Applies one or more times a parser p.
raw docstring

optionclj

(option default-val p)

Applies parser p to the input, if p fails then default-val is returned.

Applies parser p to the input, if p fails then default-val is returned.
raw docstring

replicateclj

(replicate n p)

Apply the given parser 'p' 'n' times, returning every result.

Apply the given parser 'p' 'n' times, returning every result.
raw docstring

sep-byclj

(sep-by p s)

Applies zero or more times the parser p separated by parser s.

Applies zero or more times the parser p separated by parser s.
raw docstring

sep-by1clj

(sep-by1 p s)

Applies one or more times the parser p separated by parser s.

Applies one or more times the parser p separated by parser s.
raw docstring

skip-manyclj

(skip-many p)

Skip zero or more applications of parser p.

Skip zero or more applications of parser p.
raw docstring

skip-many1clj

(skip-many1 p)

Skip one or more applications of parser p.

Skip one or more applications of parser p.
raw docstring

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

× close