(result-or-exception parse-result)Works out if a parse has failed and if so throws an error
ARGUMENTS:
RETURN: parse-result unaltered as the abstract syntax tree
EXAMPLE: (result-or-exception (parser input))
THROWS: ExceptionInfo if the parse-result was a parse error instead of an AST.
Works out if a parse has failed and if so throws an error ARGUMENTS: - parse-result: the result from instaparse.core/parser. RETURN: parse-result unaltered as the abstract syntax tree EXAMPLE: (result-or-exception (parser input)) THROWS: ExceptionInfo if the parse-result was a parse error instead of an AST.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |