(compound label source error)
Returns a compound error message, generated by the compound-labelling operator.
Returns a compound error message, generated by the compound-labelling operator.
(expected label)
Returns an error message indicating that the input did not match an
expected pattern, described by label
.
Returns an error message indicating that the input did not match an expected pattern, described by `label`.
This error indicates that the parser expected the end of the input stream, but encountered a different token.
This error indicates that the parser expected the end of the input stream, but encountered a different token.
(expected-input input)
Returns an error message indicating that the input did not match the
expected input
.
Returns an error message indicating that the input did not match the expected `input`.
An error is a collection of messages.
An error is a collection of messages.
(-reduce-msgs error f result)
Reduce all messages in this error into result
using the reducing
function f
.
Reduce all messages in this error into `result` using the reducing function `f`.
An error message.
An error message.
(-compare-msgs msg other)
Compare this message to other
, determining message order.
Compare this message to `other`, determining message order.
(-msg-type msg)
Returns a keyword representing the type of this message.
Returns a keyword representing the type of this message.
(-write-msg! msg writer opts)
Writes this message to writer
.
Writes this message to `writer`.
(message text)
Returns a generic error message that does not fit the other types.
Returns a generic error message that does not fit the other types.
(message-set error)
Returns distinct error messages as a set.
Returns distinct error messages as a set.
(message? x)
(message? x type)
Returns true if x
is a message, and optionally of the given type
.
Returns true if `x` is a message, and optionally of the given `type`.
(nested source error)
Returns an error message indicating that the parser backtracked after it
encountered error
.
Returns an error message indicating that the parser backtracked after it encountered `error`.
(nested->compound error label)
Turns a nested
error to a compound
one.
Turns a `nested` error to a `compound` one.
(sort-messages error)
Returns a sorted sequence of distinct messages in error
.
Returns a sorted sequence of distinct messages in `error`.
(string error)
(string error pos)
Returns a string representation of error
.
Returns a string representation of `error`.
(unexpected label)
Returns an error message indicating that the parser encountered some
unexpected input, described by label
.
Returns an error message indicating that the parser encountered some unexpected input, described by `label`.
This error indicates that the parser encountered an unexpected end of the input stream.
This error indicates that the parser encountered an unexpected end of the input stream.
(unexpected-input input)
Returns an error message indicating that input
the parser encountered
was unexpected.
Returns an error message indicating that `input` the parser encountered was unexpected.
(unexpected-token-or-end source)
(unexpected-token-or-end source error)
Returns an error indicating that the next token or end of input was unexpected.
Returns an error indicating that the next token or end of input was unexpected.
(write-messages! error writer)
(write-messages! error writer pos)
(write-messages! error writer pos opts)
Write error messages to writer
.
Write error messages to `writer`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close