X.xml_nempty "target" ["binder",id] (aux t)
>]
| C.ALetIn (xid,C.Anonimous,s,t) ->
- assert false (*CSC: significa che e' sbagliato il tipo di LetIn!!!*)
+ assert false
| C.ALetIn (xid,C.Name id,s,t) ->
let sort = Hashtbl.find ids_to_inner_sorts xid in
X.xml_nempty "LETIN" ["id",xid ; "sort",sort]
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 [<>]
+ )
+;;