]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/mQueryGenerator.mli
*** empty log message ***
[helm.git] / helm / gTopLevel / mQueryGenerator.mli
index 8723f9c9f002cb52559bdec40fa57b1cb754a564..e6b98c2eaa77ffb1cbcb697adc30f867f9f84dcc 100644 (file)
 
 exception Discard  
 
+type uri = string
+type position = string
+type depth = int
+type sort = string 
+
+type r_obj = (uri * position * depth option) 
+type r_rel = (position * depth)
+type r_sort = (position * depth * sort) 
+(*
+type r_obj = (string * string * int option) 
+type r_rel = (string * int) 
+type r_sort = (string * int * string) 
+*)
+
+type must_restrictions = (r_obj list * r_rel list * r_sort list)
+type can_restrictions = (r_obj list option * r_rel list option * r_sort list option)
+
+
+
 val set_log_file      : string -> unit
 
 (* the callback function must return false iff the query must be skipped *)
@@ -44,6 +63,6 @@ val execute_query     : MathQL.query -> MathQL.result
 
 val locate            : string -> MathQL.result
 
-val searchPattern     : Cic.metasenv -> Cic.context -> Cic.term -> (string * bool) list -> (string * bool) list -> MathQL.result
+val searchPattern     : must_restrictions -> can_restrictions -> MathQL.result
 
 val get_query_info    : unit -> string list