package js_of_ocaml-toplevel

  1. Overview
  2. Docs
  • deprecated Will be removed past 2019-04-01. Use Js_of_ocaml_toplevel.JsooTop instead.

Helper for Js_of_ocaml Toplevel.

val use : Format.formatter -> string -> bool

use fmt content Execute commands content. It does not print types nor values.

val execute : bool -> ?pp_code:Format.formatter -> ?highlight_location:(Location.t -> unit) -> Format.formatter -> string -> unit

execute 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.

val initialize : unit -> unit

Initialize Js_of_ocaml toplevel.

OCaml

Innovation. Community. Security.