summaryrefslogtreecommitdiff
path: root/toplevel/toploop.mli
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-05-04 10:15:53 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-05-04 10:15:53 +0000
commit61bd8ace6bdb2652f4d51d64e3239a7105f56c26 (patch)
treee8b957df0957c1b483d41d68973824e280445548 /toplevel/toploop.mli
parent8f9ea2a7b886e3e0a5cfd76b11fe79d083a7f20c (diff)
downloadocaml-61bd8ace6bdb2652f4d51d64e3239a7105f56c26.tar.gz
Passage a la version bootstrappee (franchissement du Rubicon)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'toplevel/toploop.mli')
-rw-r--r--toplevel/toploop.mli20
1 files changed, 20 insertions, 0 deletions
diff --git a/toplevel/toploop.mli b/toplevel/toploop.mli
new file mode 100644
index 0000000000..8196ac1107
--- /dev/null
+++ b/toplevel/toploop.mli
@@ -0,0 +1,20 @@
+(* The interactive toplevel loop *)
+
+val loop: unit -> unit
+
+(* Interface with toplevel directives *)
+
+type directive_fun =
+ Directive_none of (unit -> unit)
+ | Directive_string of (string -> unit)
+ | Directive_int of (int -> unit)
+ | Directive_ident of (Longident.t -> unit)
+
+val directive_table: (string, directive_fun) Hashtbl.t
+ (* Table of known directives, with their execution function *)
+val execute_phrase: Parsetree.toplevel_phrase -> unit
+ (* Execute the given toplevel phrase *)
+val print_exception_outcome: exn -> unit
+ (* Print an exception resulting from the evaluation of user code. *)
+val toplevel_env: Env.t ref
+ (* Typing environment for the toplevel *)