]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_transformations/boxPp.ml
transformations no longer use Content_expression, but rather CicAst
[helm.git] / helm / ocaml / cic_transformations / boxPp.ml
index ea6813cf2efb8dcb005ddd74eda62f7ad3b99468..073bf633d0ee901a869d4b9c3697b6f21fd71014 100644 (file)
@@ -38,10 +38,17 @@ let to_string object_to_string b =
          aux_h (String.make (String.length current_s) ' ') (Box.V([],bl')::tl)
       | Box.Object (_,obj)::tl -> aux_h (current_s ^ (object_to_string obj)) tl
       | (Box.Action _)::tl -> assert false
+      | (Box.Ink _)::tl -> aux_h (current_s ^ "----------") tl
   in
     aux_h "" [b] ;
     List.rev !layout
 
-let pp_term t =
-  String.concat "\n" (to_string CicAstPp.pp_term (Ast2pres.ast2box t))
+let pp_term ?ids_to_uris t =
+  let ids_to_uris =
+    match ids_to_uris with
+    | None -> Hashtbl.create 0
+    | Some tbl -> tbl
+  in
+  String.concat "\n" (to_string CicAstPp.pp_term
+    (Ast2pres.ast2astBox (t, ids_to_uris)))