aboutsummaryrefslogtreecommitdiff
path: root/contrib/interface
diff options
context:
space:
mode:
authorletouzey2009-02-20 13:39:46 +0000
committerletouzey2009-02-20 13:39:46 +0000
commit7529f1422c794837b0beb0066ad5ef79ce798e86 (patch)
tree491752c8c5d7839756696ee8f972ade76fe13737 /contrib/interface
parente653b53692e2cc0bb4f84881b32d3242ea39be86 (diff)
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
Diffstat (limited to 'contrib/interface')
-rw-r--r--contrib/interface/CoqInterface.v9
-rw-r--r--contrib/interface/CoqParser.v9
-rw-r--r--contrib/interface/coqparser.ml (renamed from contrib/interface/parse.ml)0
3 files changed, 18 insertions, 0 deletions
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 *)
+(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(************************************************************************)
+
+Declare ML Module "coqinterface_plugin".
diff --git a/contrib/interface/CoqParser.v b/contrib/interface/CoqParser.v
new file mode 100644
index 0000000000..db4aa06dcc
--- /dev/null
+++ b/contrib/interface/CoqParser.v
@@ -0,0 +1,9 @@
+(************************************************************************)
+(* v * The Coq Proof Assistant / The Coq Development Team *)
+(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(************************************************************************)
+
+Declare ML Module "coqparser_plugin".
diff --git a/contrib/interface/parse.ml b/contrib/interface/coqparser.ml
index 5de6060f05..5de6060f05 100644
--- a/contrib/interface/parse.ml
+++ b/contrib/interface/coqparser.ml