Utility functions used by the stacktrace parsers.
Utility functions used by the stacktrace parsers.
(error-incorrect-input input & [failure])
Return the incorrect input error.
Return the incorrect input error.
(error-unsupported-input input & [exception])
Return the unsupported input error.
Return the unsupported input error.
(instaparse parser input)
Invoke insta/parse
with parser
and input
.
Returns the parsed tree on success, or a map with an :error key and the Instaparse :failure on error.
Invoke `insta/parse` with `parser` and `input`. Returns the parsed tree on success, or a map with an :error key and the Instaparse :failure on error.
(parse-stacktrace parser transformations stacktrace-type start-regex input)
Parse a stacktrace with AST transformations applied and input skipped.
Parse a stacktrace with AST transformations applied and input skipped.
(parse-try parser input regex)
Skip over input
to the start of regex
and parse the rest of the
string. Keep doing this repeatedly until the first match.
Skip over `input` to the start of `regex` and parse the rest of the string. Keep doing this repeatedly until the first match.
(safe-read-edn s)
Read the string s
in EDN format in a safe way.
The tagged-literal
function is used as the default tagged literal
reader. Any exception thrown while reading is catched and nil will
be returned instead.
Read the string `s` in EDN format in a safe way. The `tagged-literal` function is used as the default tagged literal reader. Any exception thrown while reading is catched and nil will be returned instead.
(seek-to-regex s regex)
Return the first substring in s
matching regexp
.
Return the first substring in `s` matching `regexp`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close