Liking cljdoc? Tell your friends :D

crustimoney.results

Result constructors, accessors and predicates

Result constructors, accessors and predicates
raw docstring

->errorclj

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

->pushclj

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

->successclj

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

error->detailclj

(error->detail error)

Return the detail object of an error.

Return the detail object of an error.
sourceraw docstring

error->indexclj

(error->index error)

Return the index of an error

Return the index of an error
sourceraw docstring

error->keyclj

(error->key error)

Return the key of an error.

Return the key of an error.
sourceraw docstring

errors->line-columnclj

(errors->line-column text errors)

Returns the errors with :line and :column entries added.

Returns the errors with `:line` and `:column` entries added.
sourceraw docstring

push->indexclj

(push->index push)

Returns the index of a push value.

Returns the index of a push value.
sourceraw docstring

push->parserclj

(push->parser push)

Returns the parser of a push value.

Returns the parser of a push value.
sourceraw docstring

push->stateclj

(push->state push)

Returns the state of a push value.

Returns the state of a push value.
sourceraw docstring

push?clj

(push? obj)

Returns obj if obj is a push value.

Returns obj if obj is a push value.
sourceraw docstring

success->childrenclj

(success->children success)

Returns the children of a success.

Returns the children of a success.
sourceraw docstring

success->endclj

(success->end success)

Return the end index of a success.

Return the end index of a success.
sourceraw docstring

success->nameclj

(success->name success)

Return the name of a success.

Return the name of a success.
sourceraw docstring

success->startclj

(success->start success)

Return the start index of a success.

Return the start index of a success.
sourceraw docstring

success->textclj

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

success?clj

(success? obj)

Returns obj if obj is a success value, nil otherwise.

Returns obj if obj is a success value, nil otherwise.
sourceraw docstring

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

× close