The eval protocol: a module whose last value GIMP prints as JSON after a sentinel, and the reading of that stdout back into Clojure data.
wrap speaks AST (lowered statements in, a module out); parse speaks
text (stdout in, EvalResult out). Neither touches a transport.
The eval protocol: a module whose last value GIMP prints as JSON after a sentinel, and the reading of that stdout back into Clojure data. `wrap` speaks AST (lowered statements in, a module out); `parse` speaks text (stdout in, `EvalResult` out). Neither touches a transport.
What an eval's stdout reads as: the value, and everything else printed.
What an eval's stdout reads as: the value, and everything else printed.
(parse stdout)stdout as an EvalResult: the last sentinel line's JSON as :data
(keyword keys), every other line as :stdout.
`stdout` as an `EvalResult`: the last sentinel line's JSON as `:data` (keyword keys), every other line as `:stdout`.
The prefix of the one stdout line that carries the value.
The prefix of the one stdout line that carries the value.
(wrap lead value)The module an eval sends: the prelude, the lead statements, value
(an expression node, or nil for None) bound to the result, then printed.
The module an eval sends: the prelude, the `lead` statements, `value` (an expression node, or nil for None) bound to the result, then printed.
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 |