(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 is a website building & hosting documentation for Clojure/Script libraries
× close