package js_of_ocaml-compiler

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

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-5.4.0.tbz
sha256=f1215de133867fefdb16e2798a225ee0446469a57462af0deebdd22d2a8d3b94
sha512=610cd22818bc6f0a0163f0eec74f58338e18709a6101639f65e58241a9216ed286c3cb091b41e36a82c926de5f030d718a6e76a493e885e61456047a8da153c9

doc/js_of_ocaml-compiler/Js_of_ocaml_compiler/Linker/index.html

Module Js_of_ocaml_compiler.LinkerSource

Sourcemodule Fragment : sig ... end
Sourceval reset : unit -> unit
Sourceval load_files : target_env:Target_env.t -> string list -> unit
Sourceval load_fragments : target_env:Target_env.t -> filename:string -> Fragment.t list -> unit
Sourceval check_deps : unit -> unit
Sourcetype state
Sourcetype always_required = {
  1. filename : string;
  2. program : Javascript.program;
  3. requires : string list;
}
Sourcetype output = {
  1. runtime_code : Javascript.program;
  2. always_required_codes : always_required list;
}
Sourceval init : unit -> state
Sourceval resolve_deps : ?linkall:bool -> state -> Stdlib.StringSet.t -> state * Stdlib.StringSet.t
Sourceval get_provided : unit -> Stdlib.StringSet.t
Sourceval all : state -> string list
Sourceval origin : name:string -> string option
OCaml

Innovation. Community. Security.