(<?> 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.
(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.'
(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.
(many p)
Applies zero or more times a parser p.
Applies zero or more times a parser p.
(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.
(many1 p)
Applies one or more times a parser p.
Applies one or more times a parser p.
(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.
(replicate n p)
Apply the given parser 'p' 'n' times, returning every result.
Apply the given parser 'p' 'n' times, returning every result.
(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.
(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.
(skip-many p)
Skip zero or more applications of parser p.
Skip zero or more applications of parser p.
(skip-many1 p)
Skip one or more applications of parser p.
Skip one or more applications of parser p.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close