Module Private.Top
Abstracts away the OCaml Toploop API.
Toplevel directives
val add_inc : string -> (unit, string) Stdlib.result
add_inc dir
addsdir
to the include path.
val rem_inc : string -> (unit, string) Stdlib.result
rem_inc dir
removesdir
from the include path.
val load_ml : string -> (unit, string) Stdlib.result
load_ml ml
loads the source fileml
.
val load_obj : string -> (unit, string) Stdlib.result
load_obj obj
loads the object fileobj
.
Topdirs implementations
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 tot
and indicates withis_nat
if thisocamlnat
's implementation.