Liking cljdoc? Tell your friends :D

strojure.parsesso.impl.error


expectingclj/s

(expecting err msg)

Returns new instance of the parser error err with added “expected item” message. Ignores nil msg and returns just err.

Returns new instance of the parser error `err` with added “expected item”
message. Ignores nil `msg` and returns just `err`.
sourceraw docstring

IRenderObjectclj/sprotocol

render-objectclj/s

(render-object obj)

Returns string representation of the obj in parser error messages.

Returns string representation of the `obj` in parser error messages.
source

merge-errorsclj/s

(merge-errors e1 e2)

Returns parser error with messages from another two errors.

Returns parser error with messages from another two errors.
sourceraw docstring

messageclj/s

(message state msg)

Returns parser error with some general parser message msg, generated by the fail combinator.

Returns parser error with some general parser message `msg`, generated by the
`fail` combinator.
sourceraw docstring

render-messagesclj/s≠

clj
(render-messages messages)
(render-messages {:keys [unknown expecting unexpected end-of-input or] :as dict}
                 messages)
cljs
(render-messages messages)
(render-messages dict messages)

The standard function for showing error messages. Formats a list of error messages in English. The resulting string will be formatted like:

  • unexpected {The first UnExpect or a SysUnExpect message}
  • expecting {comma separated list of Expect messages}
  • {comma separated list of Message messages}

Example:

unexpected UnExpect2 or UnExpect1
expecting Expect3, Expect2 or Expect1
Message2 or Message1
The standard function for showing error messages. Formats a list of error
messages in English. The resulting string will be formatted like:

- unexpected _{The first UnExpect or a SysUnExpect message}_
- expecting _{comma separated list of Expect messages}_
- _{comma separated list of Message messages}_

Example:

    unexpected UnExpect2 or UnExpect1
    expecting Expect3, Expect2 or Expect1
    Message2 or Message1
sourceraw docstring

sys-unexpectedclj/s

(sys-unexpected state msg)

Returns “unexpected input” parser error with message msg.

Returns “unexpected input” parser error with message `msg`.
sourceraw docstring

sys-unexpected-eofclj/s

(sys-unexpected-eof state)

Returns “unexpected input” parser error in case of end of input.

Returns “unexpected input” parser error in case of end of input.
sourceraw docstring

unexpectedclj/s

(unexpected state msg)

Returns “unexpected item” parser error with message msg.

Returns “unexpected item” parser error with message `msg`.
sourceraw docstring

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

× close