]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_textual_parser/cicTextualParser0.ml
- the mathql interpreter is not helm-dependent any more
[helm.git] / helm / ocaml / cic_textual_parser / cicTextualParser0.ml
index 0a841473474275adee71d1b89f11a3f8b47eeaf5..7a53057e24729653669fd68f4de98820bc683ac2 100644 (file)
  *)
 
 exception Eof;;
+exception LexerFailure of string;;
+
+type uri =
+   ConUri of UriManager.uri
+ | VarUri of UriManager.uri
+ | IndTyUri of UriManager.uri * int
+ | IndConUri of UriManager.uri * int * int
+;;
+
+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 current_uri = ref (UriManager.uri_of_string "cic:/dummy.con");;
 let binders = ref ([] : (Cic.name option) list);;
 let metasenv = ref ([] : Cic.metasenv);;