From 7529f1422c794837b0beb0066ad5ef79ce798e86 Mon Sep 17 00:00:00 2001 From: letouzey Date: Fri, 20 Feb 2009 13:39:46 +0000 Subject: coq-interface and coq-parser can be calls to coqtop with adequate code dynlink From files in contrib/interface, we create (if natdynlink is available) two plugins named coqinterface_plugin.{cma,cmxs} and coqparser_plugin.{cma,cmxs}. These plugins are loaded respectively by CoqInterface.v and CoqParser.v. So coq-interface can be "coqtop -require CoqInterface", and coq-parser can be "coqtop -batch -l CoqParser" (this one cannot be compiled into a .vo, otherwise a customized toplevel is launched during the compilation). Turing coq-interface and coq-parser and their .opt versions into shell scripts allow to spare around 40 Mb of disk space... Nota: at dynlink, parse.ml was conflicting with the module Parse of the ocaml runtime, so I renamed it into coqparser.ml git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11940 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/interface/CoqInterface.v | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 contrib/interface/CoqInterface.v (limited to 'contrib/interface/CoqInterface.v') diff --git a/contrib/interface/CoqInterface.v b/contrib/interface/CoqInterface.v new file mode 100644 index 0000000000..e86fb2fce9 --- /dev/null +++ b/contrib/interface/CoqInterface.v @@ -0,0 +1,9 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(*