]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_textual_parser/cicTextualParser0.ml
The two lexers now raise CicTextualParser0.LexerFailure instead of
[helm.git] / helm / ocaml / cic_textual_parser / cicTextualParser0.ml
index a0738ad7e36d181b19cfb151e922c500b3d488ad..7a53057e24729653669fd68f4de98820bc683ac2 100644 (file)
@@ -24,6 +24,7 @@
  *)
 
 exception Eof;;
+exception LexerFailure of string;;
 
 type uri =
    ConUri of UriManager.uri
@@ -32,10 +33,16 @@ type uri =
  | IndConUri of UriManager.uri * int * int
 ;;
 
-let current_uri = ref (UriManager.uri_of_string "cic:/dummy.con");;
+type interpretation_domain_item =
+   Id of string
+ | Symbol of string * (string * (interpretation -> Cic.term)) list
+and interpretation_codomain_item =
+   Uri of uri
+ | Implicit
+ | Term of (interpretation -> Cic.term)
+and interpretation =
+ interpretation_domain_item -> interpretation_codomain_item option
+;;
+
 let binders = ref ([] : (Cic.name option) list);;
 let metasenv = ref ([] : Cic.metasenv);;
-let locate_object = ref ((fun _ -> None):string->uri option);;
-
-let set_locate_object f =
-   locate_object := f