From 9ebf44d84754adc5b64fcf612c6816c02c80462d Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 2 Feb 2019 19:29:23 -0500 Subject: Imported Upstream version 8.9.0 --- topbin/coqproofworker_bin.ml | 14 ++++++++++++++ topbin/coqqueryworker_bin.ml | 13 +++++++++++++ topbin/coqtacticworker_bin.ml | 13 +++++++++++++ topbin/coqtop_bin.ml | 16 ++++++++++++++++ topbin/coqtop_byte_bin.ml | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 90 insertions(+) create mode 100644 topbin/coqproofworker_bin.ml create mode 100644 topbin/coqqueryworker_bin.ml create mode 100644 topbin/coqtacticworker_bin.ml create mode 100644 topbin/coqtop_bin.ml create mode 100644 topbin/coqtop_byte_bin.ml (limited to 'topbin') diff --git a/topbin/coqproofworker_bin.ml b/topbin/coqproofworker_bin.ml new file mode 100644 index 00000000..7ae91cfb --- /dev/null +++ b/topbin/coqproofworker_bin.ml @@ -0,0 +1,14 @@ +(************************************************************************) +(* * The Coq Proof Assistant / The Coq Development Team *) +(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *) +(* f () + | _ -> () + end + with + | Not_found -> () + end; + let ppf = Format.std_formatter in + Mltop.(set_top + { load_obj = (fun f -> if not (Topdirs.load_file ppf f) + then CErrors.user_err Pp.(str ("Could not load plugin "^f)) + ); + use_file = Topdirs.dir_use ppf; + add_dir = Topdirs.dir_directory; + ml_loop = (fun () -> Toploop.loop ppf); + }) + +(* Main coqtop initialization *) +let _ = + drop_setup (); + Coqtop.(start_coq coqtop_toplevel) -- cgit v1.2.3