1
(************************************************************************)
2
(* v * The Coq Proof Assistant / The Coq Development Team *)
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
4
(* \VV/ **************************************************************)
5
(* // * This file is distributed under the terms of the *)
6
(* * GNU Lesser General Public License Version 2.1 *)
7
(************************************************************************)
9
(*i $Id: mltop.mli 11528 2008-10-31 08:40:42Z glondu $ i*)
11
(* If there is a toplevel under Coq, it is described by the following
14
load_obj : string -> unit;
15
use_file : string -> unit;
16
add_dir : string -> unit;
17
ml_loop : unit -> unit }
19
(* Sets and initializes a toplevel (if any) *)
20
val set_top : toplevel -> unit
22
(* Are we in a native version of Coq? *)
25
(* Removes the toplevel (if any) *)
26
val remove : unit -> unit
28
(* Tests if an Ocaml toplevel runs under Coq *)
29
val is_ocaml_top : unit -> bool
31
(* Tests if we can load ML files *)
32
val has_dynlink : bool
34
(* Starts the Ocaml toplevel loop *)
35
val ocaml_toploop : unit -> unit
37
(* Dynamic loading of .cmo *)
38
val dir_ml_load : string -> unit
40
(* Dynamic interpretation of .ml *)
41
val dir_ml_use : string -> unit
43
(* Adds a path to the ML paths *)
44
val add_ml_dir : string -> unit
45
val add_rec_ml_dir : string -> unit
47
(* Adds a path to the Coq and ML paths *)
48
val add_path : unix_path:string -> coq_root:Names.dir_path -> unit
49
val add_rec_path : unix_path:string -> coq_root:Names.dir_path -> unit
51
val add_init_with_state : (unit -> unit) -> unit
52
val init_with_state : unit -> unit
54
(* List of modules linked to the toplevel *)
55
val add_known_module : string -> unit
56
val module_is_known : string -> bool
57
val load_object : string -> string -> unit
59
(* Summary of Declared ML Modules *)
60
val get_loaded_modules : unit -> string list
61
val add_loaded_module : string -> unit
62
val init_ml_modules : unit -> unit
63
val unfreeze_ml_modules : string list -> unit
65
type ml_module_object = { mnames: string list }
66
val inMLModule : ml_module_object -> Libobject.obj
67
val outMLModule : Libobject.obj -> ml_module_object
69
val declare_ml_modules : string list -> unit
70
val print_ml_path : unit -> unit
72
val print_ml_modules : unit -> unit