From 5d5a92c9d6da1c1b23ca64e40c17e9c5f4772daa Mon Sep 17 00:00:00 2001 From: letouzey Date: Fri, 30 Apr 2010 14:33:42 +0000 Subject: 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 --- plugins/extraction/table.mli | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/extraction/table.mli') diff --git a/plugins/extraction/table.mli b/plugins/extraction/table.mli index b8cdea3b6a..f02e73190d 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 *) -- cgit v1.2.3