package js_of_ocaml-toplevel

  1. Overview
  2. Docs
Compiler from OCaml bytecode to JavaScript

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-3.10.0.tbz
sha256=7bfe95c283e30a53df9364555517aa4ea614876be566a86b33e6d0fefc4a6126
sha512=1815f0bfcea65a28082293756350a9365304584d3a19af0983e1498c6f8d7d25a751aec18560aa7b633b64b8adfb4417e9647cdf703bedcb7aaf316abf9a3243

doc/js_of_ocaml-toplevel/Js_of_ocaml_toplevel/JsooTop/index.html

Module Js_of_ocaml_toplevel.JsooTop

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.