Result constructors, accessors and predicates
Result constructors, accessors and predicates
(->error key index)
(->error key index detail)
Create an error result, given an error key and an index. An extra detail object can be added.
Create an error result, given an error key and an index. An extra detail object can be added.
(->push parser index)
(->push parser index state)
Create a push value, given a parser function and an index. Optionally a state object can be added.
Create a push value, given a parser function and an index. Optionally a state object can be added.
(->success start end)
(->success start end children)
Create a success result, given a start index (inclusive) and end index (exclusive). Optionally a collection of success children can be given. The name of the success is nil.
Create a success result, given a start index (inclusive) and end index (exclusive). Optionally a collection of success children can be given. The name of the success is nil.
(error->detail error)
Return the detail object of an error.
Return the detail object of an error.
(error->index error)
Return the index of an error
Return the index of an error
(error->key error)
Return the key of an error.
Return the key of an error.
(errors->line-column text errors)
Returns the errors with :line
and :column
entries added.
Returns the errors with `:line` and `:column` entries added.
(push->index push)
Returns the index of a push value.
Returns the index of a push value.
(push->parser push)
Returns the parser of a push value.
Returns the parser of a push value.
(push->state push)
Returns the state of a push value.
Returns the state of a push value.
(push? obj)
Returns obj if obj is a push value.
Returns obj if obj is a push value.
(success->children success)
Returns the children of a success.
Returns the children of a success.
(success->end success)
Return the end index of a success.
Return the end index of a success.
(success->name success)
Return the name of a success.
Return the name of a success.
(success->start success)
Return the start index of a success.
Return the start index of a success.
(success->text text success)
Returns the matched text of a success, given the full text.
Returns the matched text of a success, given the full text.
(success? obj)
Returns obj if obj is a success value, nil otherwise.
Returns obj if obj is a success value, nil otherwise.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close