Private.Top
Abstracts away the OCaml Toploop API.
val add_inc : string -> (unit, string) Stdlib.result
add_inc dir adds dir to the include path.
add_inc dir
dir
val rem_inc : string -> (unit, string) Stdlib.result
rem_inc dir removes dir from the include path.
rem_inc dir
val load_ml : string -> (unit, string) Stdlib.result
load_ml ml loads the source file ml.
load_ml ml
ml
val load_obj : string -> (unit, string) Stdlib.result
load_obj obj loads the object file obj.
load_obj obj
obj
val is_nat : unit -> bool
is_nat () is true if the current toplevel implementation is ocamlnat.
is_nat ()
true
ocamlnat
module type TOPDIRS = sig ... end
The type for Topdir module implementations.
val set_topdirs : is_nat:bool -> (module TOPDIRS) -> unit
set_topdirs ~is_nat t sets the topdirs implementation to t and indicates with is_nat if this ocamlnat's implementation.
set_topdirs ~is_nat t
t
is_nat