Liking cljdoc? Tell your friends :D
All platforms.

fif.impl.prepl

Implementation of programmable repl. Useful for implementing fif outside of a standard input/output environment.

Implementation of programmable repl. Useful for implementing fif
outside of a standard input/output environment.
raw docstring

prepl-evalclj/s

(prepl-eval sm input-string output-fn)

Programmable Repl Evaluation for clojure(script). Function is useful for a full repl implementation, since the output can be processed via output-fn.

Keyword Arguments:

sm -- Stack-machine

input-string -- String representation of fif form to be evaluated.

output-fn -- Function of the form (fn [{:keys [tag value]}]).

Output Function Key Arguments:

tag -- either :error from err output, :out from out output.

value -- string value of the presented tag.

Return Value:

Returns an updated stack-machine after the input-string has been evaluated.

Notes:

  • Standard Out is flushed after evaluation, however, while evaluating, output-fn will get called preceding any newline delimited string within the print writer.
Programmable Repl Evaluation for clojure(script). Function is useful
for a full repl implementation, since the output can be processed
via `output-fn`.
 

 Keyword Arguments:

 sm -- Stack-machine

 input-string -- String representation of fif form to be evaluated.

 output-fn -- Function of the form (fn [{:keys [tag value]}]).


 Output Function Key Arguments:

 tag -- either :error from *err* output, :out from *out* output.

 value -- string value of the presented tag.


 Return Value:

 Returns an updated stack-machine after the `input-string` has been evaluated.

 Notes:

 - Standard Out is flushed after evaluation, however, while
evaluating, output-fn will get called preceding any newline
delimited string within the print writer.
 
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close