X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_annotations%2FcicAnnotation2Xml.ml;h=4c028208f05043a12d43b12081b3b02efb9b453f;hb=fdd8107cc53f5e862004aa5fcd48593ee5634234;hp=353ef1f7496082b445329372061f59c56ce83d06;hpb=bac72fcaa876137ab7a5630e0c1badc2a627dce8;p=helm.git diff --git a/helm/ocaml/cic_annotations/cicAnnotation2Xml.ml b/helm/ocaml/cic_annotations/cicAnnotation2Xml.ml index 353ef1f74..4c028208f 100644 --- a/helm/ocaml/cic_annotations/cicAnnotation2Xml.ml +++ b/helm/ocaml/cic_annotations/cicAnnotation2Xml.ml @@ -38,7 +38,7 @@ let print_ann i2a id = let ann = get_ann i2a id in match ann with None -> [<>] - | Some ann -> (X.xml_nempty "Annotation" ["of", id] (X.xml_cdata ann)) + | Some ann -> (X.xml_nempty "Annotation" [None,"of", id] (X.xml_cdata ann)) ;; (*CSC ottimizzazione: al posto di curi cdepth (vedi codice) *) @@ -106,10 +106,10 @@ let pp_annotation obj i2a curi = [< X.xml_cdata "\n" ; X.xml_cdata ("\n\n") ; X.xml_nempty "Annotations" - ["of", UriManager.string_of_uri (UriManager.cicuri_of_uri curi)] + [None, "of", UriManager.string_of_uri (UriManager.cicuri_of_uri curi)] begin match obj with - C.AConstant (xid, xidobj, _, te, ty, _) -> + C.AConstant (xid, xidobj, _, te, ty, _, _) -> [< print_ann i2a xid ; (match xidobj,te with Some xidobj, Some te -> @@ -121,7 +121,7 @@ let pp_annotation obj i2a curi = ) ; print_term i2a ty >] - | C.AVariable (xid, _, bo, ty,_) -> + | C.AVariable (xid, _, bo, ty,_, _) -> [< print_ann i2a xid ; (match bo with None -> [<>] @@ -129,7 +129,7 @@ let pp_annotation obj i2a curi = ) ; print_term i2a ty >] - | C.ACurrentProof (xid, xidobj, _, conjs, bo, ty,_) -> + | C.ACurrentProof (xid, xidobj, _, conjs, bo, ty,_, _) -> [< print_ann i2a xid ; print_ann i2a xidobj ; List.fold_right @@ -151,7 +151,7 @@ let pp_annotation obj i2a curi = print_term i2a bo ; print_term i2a ty >] - | C.AInductiveDefinition (xid, tys, params, paramsno) -> + | C.AInductiveDefinition (xid, tys, params, paramsno, _) -> [< print_ann i2a xid ; List.fold_right (fun x i -> [< print_mutual_inductive_type i2a x ; i >])