]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/mQueryGenerator.mli
Initial revision
[helm.git] / helm / gTopLevel / mQueryGenerator.mli
index a07019688f06e837ebacd465ce65cf72b6aae792..57137974f8ad0d7e12b88273ebcb956d4bd5fcbf 100644 (file)
 (*                                                                            *)
 (******************************************************************************)
 
-val levels  : Cic.metasenv -> Cic.context -> Cic.term -> int -> string
-                                 (* level assignment testing function *)
+exception Discard  
 
-val init      : unit -> unit     (* INIT database function *)
+type levels_spec = (string * bool * int) list
 
-val close     : unit -> unit     (* CLOSE database function *)
+val levels_of_term    : Cic.metasenv -> Cic.context -> Cic.term -> levels_spec
 
-val locate    : string -> string (* LOCATE query building function *)
+val string_of_levels  : levels_spec -> string -> string
 
-val backward  : Cic.metasenv -> Cic.context -> Cic.term -> int -> string
-                                 (* BACKWARD query building function *)
+val set_log_file      : string -> unit
+
+(* the callback function must return false iff the query must be skipped *)
+val set_confirm_query : (MathQL.query -> bool) -> unit
+
+val execute_query     : MathQL.query -> MathQL.result
+
+val locate            : string -> MathQL.result
+
+val backward          : Cic.metasenv -> Cic.context -> Cic.term -> int -> MathQL.result
+
+val get_query_info    : unit -> string list