Js_of_ocaml_toplevel_common.DirectHelper for Js_of_ocaml Toplevel.
use fmt content Execute commands content, returning true if every phrase succeeded. print_outcome says whether the computed values and their types should be printed to fmt; it defaults to false (silent).
val execute :
bool ->
?pp_code:Stdlib.Format.formatter ->
?highlight_location:(Location.t -> unit) ->
Stdlib.Format.formatter ->
string ->
unitexecute print fmt content Execute content. print says whether the values and types of the results should be printed. pp_code formatter can be use to output ocaml source during lexing.