X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic%2FcicParser.mli;h=048df36a360dbe3898f8be1b37bbe9b0070c2571;hb=fdd8107cc53f5e862004aa5fcd48593ee5634234;hp=1eb5a043b8a9405aa045ce5adfd8c499cd84f43b;hpb=ae326f646ef4c01b43d6da04201b427d1e175400;p=helm.git diff --git a/helm/ocaml/cic/cicParser.mli b/helm/ocaml/cic/cicParser.mli index 1eb5a043b..048df36a3 100644 --- a/helm/ocaml/cic/cicParser.mli +++ b/helm/ocaml/cic/cicParser.mli @@ -36,10 +36,22 @@ (* *) (******************************************************************************) -(* given the filename of an xml file of a cic object and it's uri, it returns *) -(* its internal annotated representation. *) -val annobj_of_xml : string -> UriManager.uri -> Cic.annobj + (** raised for exception received by the getter (i.e. embedded in the source + * XML document). Arguments are values of "helm:exception" and + * "helm:exception_arg" attributes *) +exception Getter_failure of string * string -(* given the filename of an xml file of a cic object and it's uri, it returns *) -(* its internal logical representation. *) -val obj_of_xml : string -> UriManager.uri -> Cic.obj + (** generic parser failure *) +exception Parser_failure of string + +(* given the filename of an xml file of a cic object, it returns *) +(* its internal annotated representation. In the case of constants (whose *) +(* type is splitted from the body), a second xml file (for the body) must be *) +(* provided. *) +val annobj_of_xml : string -> string option -> Cic.annobj + +(* given the filename of an xml file of a cic object, it returns *) +(* its internal logical representation. In the case of constants (whose *) +(* type is splitted from the body), a second xml file (for the body) must be *) +(* provided. *) +val obj_of_xml : string -> string option -> Cic.obj