Private.TopAbstracts away the OCaml Toploop API.
val add_inc : string -> (unit, string) resultadd_inc dir adds dir to the include path.
val rem_inc : string -> (unit, string) resultrem_inc dir removes dir from the include path.
val load_ml : string -> (unit, string) resultload_ml ml loads the source file ml.
val load_obj : string -> (unit, string) resultload_obj obj loads the object file obj.
module type TOPDIRS = sig ... endThe type for Topdir module implementations.
val set_topdirs : is_nat:bool -> (module TOPDIRS) -> unitset_topdirs ~is_nat t sets the topdirs implementation to t and indicates with is_nat if this ocamlnat's implementation.