diff options
author | Benjamin Barenblat <bbaren@debian.org> | 2018-12-29 14:31:27 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@debian.org> | 2018-12-29 14:31:27 -0500 |
commit | 9043add656177eeac1491a73d2f3ab92bec0013c (patch) | |
tree | 2b0092c84bfbf718eca10c81f60b2640dc8cab05 /toplevel/search.mli | |
parent | a4c7f8bd98be2a200489325ff7c5061cf80ab4f3 (diff) |
Imported Upstream version 8.8.2upstream/8.8.2
Diffstat (limited to 'toplevel/search.mli')
-rw-r--r-- | toplevel/search.mli | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/toplevel/search.mli b/toplevel/search.mli deleted file mode 100644 index ba3d48ef..00000000 --- a/toplevel/search.mli +++ /dev/null @@ -1,76 +0,0 @@ -(************************************************************************) -(* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *) -(* \VV/ **************************************************************) -(* // * This file is distributed under the terms of the *) -(* * GNU Lesser General Public License Version 2.1 *) -(************************************************************************) - -open Pp -open Names -open Term -open Environ -open Pattern -open Globnames - -(** {6 Search facilities. } *) - -type glob_search_about_item = - | GlobSearchSubPattern of constr_pattern - | GlobSearchString of string - -type filter_function = global_reference -> env -> constr -> bool -type display_function = global_reference -> env -> constr -> unit - -(** {6 Generic filter functions} *) - -val blacklist_filter : filter_function -(** Check whether a reference is blacklisted. *) - -val module_filter : DirPath.t list * bool -> filter_function -(** Check whether a reference pertains or not to a set of modules *) - -val search_about_filter : glob_search_about_item -> filter_function -(** Check whether a reference matches a SearchAbout query. *) - -(** {6 Specialized search functions} - -[search_xxx gl pattern modinout] searches the hypothesis of the [gl]th -goal and the global environment for things matching [pattern] and -satisfying module exclude/include clauses of [modinout]. *) - -val search_by_head : int option -> constr_pattern -> DirPath.t list * bool - -> display_function -> unit -val search_rewrite : int option -> constr_pattern -> DirPath.t list * bool - -> display_function -> unit -val search_pattern : int option -> constr_pattern -> DirPath.t list * bool - -> display_function -> unit -val search_about : int option -> (bool * glob_search_about_item) list - -> DirPath.t list * bool -> display_function -> unit - -type search_constraint = - (** Whether the name satisfies a regexp (uses Ocaml Str syntax) *) - | Name_Pattern of Str.regexp - (** Whether the object type satisfies a pattern *) - | Type_Pattern of Pattern.constr_pattern - (** Whether some subtype of object type satisfies a pattern *) - | SubType_Pattern of Pattern.constr_pattern - (** Whether the object pertains to a module *) - | In_Module of Names.DirPath.t - (** Bypass the Search blacklist *) - | Include_Blacklist - -type 'a coq_object = { - coq_object_prefix : string list; - coq_object_qualid : string list; - coq_object_object : 'a; -} - -val interface_search : ?glnum:int -> (search_constraint * bool) list -> - string coq_object list - -(** {6 Generic search function} *) - -val generic_search : int option -> display_function -> unit -(** This function iterates over all hypothesis of the goal numbered - [glnum] (if present) and all known declarations. *) |