]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/cic2Xml.ml
* Many improvements
[helm.git] / helm / gTopLevel / cic2Xml.ml
index db5fd23c57f942e4ec79aaa7f27fb48bd55b6dd0..115d1ee666bc064ac91c16bcfc509dbbe8d6ecff 100644 (file)
@@ -203,3 +203,16 @@ let print_object curi ids_to_inner_sorts =
  in
   aux
 ;;
+
+let print_inner_types curi ids_to_inner_sorts ids_to_inner_types =
+ let module X = Xml in
+  X.xml_nempty "InnerTypes" ["of",UriManager.string_of_uri curi]
+   (Hashtbl.fold
+     (fun id ty x ->
+       [< x ;
+          X.xml_nempty "TYPE" ["of",id]
+           (print_term curi ids_to_inner_sorts ty)
+       >]
+     ) ids_to_inner_types [<>]
+   )
+;;