]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/disambiguateTypes.mli
ready for 0.1.1 release
[helm.git] / helm / ocaml / cic_disambiguation / disambiguateTypes.mli
index c210849669320aaaa57e6e2cfc5e0cb2e119fe96..084ce012287df5d1665871fa68d0817a2a3c445a 100644 (file)
@@ -31,6 +31,10 @@ type domain_item =
 (* module Domain:      Set.S with type elt = domain_item *)
 module Environment: Map.S with type key = domain_item
 
+  (** to be raised when a choice is invalid due to some given parameter (e.g.
+   * wrong number of Cic.term arguments received) *)
+exception Invalid_choice
+
 type codomain_item =
   string *  (* description *)
   (environment -> string -> Cic.term list -> Cic.term)
@@ -38,6 +42,9 @@ type codomain_item =
 
 and environment = codomain_item Environment.t
 
+(* a simple case of extension of a disambiguation environment *)
+val env_of_list: (string * string * Cic.term) list -> environment -> environment
+
 module type Callbacks =
   sig
 
@@ -45,9 +52,10 @@ module type Callbacks =
       selection_mode:[`SINGLE | `MULTIPLE] ->
       ?ok:string ->
       ?enable_button_for_non_vars:bool ->
-      title:string -> msg:string -> id:string -> string list -> string list
+      title:string -> msg:string -> id:string -> UriManager.uri list ->
+       UriManager.uri list
 
-    val interactive_interpretation_choice :
+      val interactive_interpretation_choice :
       (string * string) list list -> int list
 
     (** @param title gtk window title for user prompting
@@ -61,14 +69,14 @@ val string_of_domain: domain_item list -> string
 
 (** {3 type shortands} *)
 
-type term = CicAst.term
-type tactic = (term, string) TacticAst.tactic
-type tactical = (term, string) TacticAst.tactical
+type term = CicNotationPt.term
+type tactic = (term, string) GrafiteAst.tactic
+type tactical = (term, string) GrafiteAst.tactical
 
 type script_entry =
   | Command of tactical
-  | Comment of CicAst.location * string
-type script = CicAst.location * script_entry list
+  | Comment of CicNotationPt.location * string
+type script = CicNotationPt.location * script_entry list
 
 val empty_environment: environment