(assign context m)
Expands to code updating specified context functions at once.
Expands to code updating specified context functions at once.
(assign* context -c-ok -e-ok -c-err -e-err)
Returns new instance of context with replaced functions, nil arg keep functions untouched. To be used with macro.
Returns new instance of context with replaced functions, nil arg keep functions untouched. To be used with macro.
(c-err context error)
Fails with parser error as consumed (consumed-error).
Fails with parser error as consumed (consumed-error).
(c-ok context state x)
Replies with result value as consumed (consumed-ok).
Replies with result value as consumed (consumed-ok).
(e-err context error)
Fails with parser error as not consumed (empty-error).
Fails with parser error as not consumed (empty-error).
(e-ok context state x)
Replies with result value as not consumed (empty-ok).
Replies with result value as not consumed (empty-ok).
(error? reply)
True if reply
is parser error.
True if `reply` is parser error.
(new-context)
Returns new instance of context with initialized reply functions.
Returns new instance of context with initialized reply functions.
(result? reply)
True if reply
is parsing result with value.
True if `reply` is parsing result with value.
(value reply)
Returns value for Result reply or throws exception otherwise.
Returns value for Result reply or throws exception otherwise.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close