X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=components%2Fcic_acic%2Fcic2Xml.ml;h=31765f0552e8005d3c9168138a981026514dd38a;hb=2499f5fdcf4dbfecc6f4fafe925b24ae76f14be8;hp=7e97dea6fb0b5fef93d430632c901f8e043688b7;hpb=7f2444c2670cadafddd8785b687ef312158376b0;p=helm.git diff --git a/components/cic_acic/cic2Xml.ml b/components/cic_acic/cic2Xml.ml index 7e97dea6f..31765f055 100644 --- a/components/cic_acic/cic2Xml.ml +++ b/components/cic_acic/cic2Xml.ml @@ -269,7 +269,8 @@ let print_term ?ids_to_inner_sorts = let xml_of_attrs attributes = let class_of = function - | `Coercion -> Xml.xml_empty "class" [None,"value","coercion"] + | `Coercion n -> + Xml.xml_empty "class" [None,"value","coercion";None,"arity",string_of_int n] | `Elim s -> Xml.xml_nempty "class" [None,"value","elim"] [< Xml.xml_empty @@ -279,9 +280,13 @@ let xml_of_attrs attributes = | `Record field_names -> Xml.xml_nempty "class" [None,"value","record"] (List.fold_right - (fun (name,coercion) res -> + (fun (name,coercion,arity) res -> [< Xml.xml_empty "field" - [None,"name",if coercion then name ^ " coercion" else name]; + [None,"name", + if coercion then + name ^ " coercion " ^ string_of_int arity + else + name]; res >] ) field_names [<>]) | `Projection -> Xml.xml_empty "class" [None,"value","projection"] @@ -293,6 +298,7 @@ let xml_of_attrs attributes = | `Remark -> Xml.xml_empty "flavour" [None, "value", "remark"] | `Theorem -> Xml.xml_empty "flavour" [None, "value", "theorem"] | `Variant -> Xml.xml_empty "flavour" [None, "value", "variant"] + | `Axiom -> Xml.xml_empty "flavour" [None, "value", "axiom"] in let xml_attr_of = function | `Generated -> Xml.xml_empty "generated" []