blob: df5a414a1f2928791e1d6a1d913482911b4baab9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
(***********************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *)
(* \VV/ *************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(***********************************************************************)
(*i $Id$ i*)
open Names
open Term
open Miniml
open Environ
(*s Result of an extraction. *)
type type_var = Varity | Vprop | Vdefault
type signature = (type_var * identifier) list
type extraction_result =
| Emltype of ml_type * signature * identifier list
| Emlterm of ml_ast
| Eprop
(*s Extraction functions. *)
val extract_constr : env -> constr -> extraction_result
(*s ML declaration corresponding to a Coq reference. *)
val extract_declaration : global_reference -> ml_decl
|