X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_transformations%2FboxPp.ml;h=fcc91342170aefeeacbf76f1799790588df8e451;hb=0d6486664169e87c0f2123f4923ab0aa3e544ebb;hp=ea6813cf2efb8dcb005ddd74eda62f7ad3b99468;hpb=66354b59c5bbf75e0b008ed27b713ba47b9eaca9;p=helm.git diff --git a/helm/ocaml/cic_transformations/boxPp.ml b/helm/ocaml/cic_transformations/boxPp.ml index ea6813cf2..fcc913421 100644 --- a/helm/ocaml/cic_transformations/boxPp.ml +++ b/helm/ocaml/cic_transformations/boxPp.ml @@ -36,12 +36,20 @@ let to_string object_to_string b = | Box.V (_,b::bl')::tl -> aux_h current_s [b] ; aux_h (String.make (String.length current_s) ' ') (Box.V([],bl')::tl) + | Box.HV _ :: _ | Box.HOV _ :: _ -> assert false (* not implemented *) | 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)))