Utility functions dealing with checking or tranforming forms or zippers.
Utility functions dealing with checking or tranforming forms or zippers.
(parse-and-catch-failure form-being-parsed parser)
Execute the parsing function (which should have
already lexically bound the parts of the form it
needs). Upon success, return the parsed form. If
the parser discovers an error, it should report-error
,
which stops further execution and returns false.
In case of some exception, the form-being-parsed
is used to attempt some decent output.
These functions can be dynamically nested: only the outermost one will have to deal with parse errors.
Note that the parsing code should take care not to let unparsed code escape from this function via lazy seqs.
Execute the parsing function (which should have already lexically bound the parts of the form it needs). Upon success, return the parsed form. If the parser discovers an error, it should `report-error`, which stops further execution and returns false. In case of some exception, the `form-being-parsed` is used to attempt some decent output. These functions can be dynamically nested: only the outermost one will have to deal with parse errors. Note that the parsing code should take care not to let unparsed code escape from this function via lazy seqs.
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 |