diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2010-04-30 14:33:42 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2010-04-30 14:33:42 +0000 |
commit | 5d5a92c9d6da1c1b23ca64e40c17e9c5f4772daa (patch) | |
tree | 2b75a08cb085577ff85e27180212457b3460116a /plugins/extraction/table.mli | |
parent | 61edbfce11285443be098bbceddb7f8f04d2a5b0 (diff) |
Extraction: an experimental command to get rid of some cst/constructor arguments
The command : Extraction Implicit foo [1 3].
will tell the extraction to consider fst and third arg of foo as implicit,
and remove them, unless a final occur-check after extraction shows they
are still there. Here, foo can be a inductive constructor or a global
constant.
This allow typicaly to extract vectors into usual list :-)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12982 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/extraction/table.mli')
-rw-r--r-- | plugins/extraction/table.mli | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/extraction/table.mli b/plugins/extraction/table.mli index b8cdea3b6..f02e73190 100644 --- a/plugins/extraction/table.mli +++ b/plugins/extraction/table.mli @@ -31,6 +31,7 @@ val error_record : global_reference -> 'a val check_inside_module : unit -> unit val check_inside_section : unit -> unit val check_loaded_modfile : module_path -> unit +val error_non_implicit : global_reference -> int -> name option -> 'a val info_file : string -> unit @@ -120,6 +121,10 @@ val modular : unit -> bool val to_inline : global_reference -> bool val to_keep : global_reference -> bool +(*s Table for implicits arguments *) + +val implicits_of_global : global_reference -> int list + (*s Table for user-given custom ML extractions. *) (* UGLY HACK: registration of a function defined in [extraction.ml] *) @@ -139,6 +144,7 @@ val reset_extraction_inline : unit -> unit val extract_constant_inline : bool -> reference -> string list -> string -> unit val extract_inductive : reference -> string * string list -> unit +val extraction_implicit : reference -> int list -> unit (*s Table of blacklisted filenames *) |