Liking cljdoc? Tell your friends :D

instaparse.failure

Facilities for printing and manipulating error messages.

Facilities for printing and manipulating error messages.
raw docstring

augment-failureclj/s

(augment-failure failure text)

Adds text, line, and column info to failure object.

Adds text, line, and column info to failure object.
source (clj)source (cljs)raw docstring

get-lineclj/s≠

(get-line n text)
clj

Returns nth line of text, 1-based

Returns nth line of text, 1-based
source (clj)source (cljs)raw docstring

index->line-columnclj/s

(index->line-column index text)

Takes an index into text, and determines the line and column info

Takes an index into text, and determines the line and column info
source (clj)source (cljs)raw docstring

markerclj/s

(marker n)

Creates string with caret at nth position, 1-based

Creates string with caret at nth position, 1-based
source (clj)source (cljs)raw docstring

pprint-failureclj/s

(pprint-failure {:keys [line column text reason]})

Takes an augmented failure object and prints the error message

Takes an augmented failure object and prints the error message
source (clj)source (cljs)raw docstring

(print-reason r)

Provides special case for printing negative lookahead reasons

Provides special case for printing negative lookahead reasons
source (clj)source (cljs)raw docstring

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

× close