X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_omdoc%2FcontentPp.ml;h=3967c621668818fbb68b8e48fcd3e2bbc96e0b32;hb=6248703e9f479d4c3edfcf227908ffd9d2dd7adc;hp=58ba4873b627bbed8d3bd7aef47ff0a2e815c500;hpb=60951dd6218b8436830723dc10d4aed7b6894855;p=helm.git diff --git a/helm/ocaml/cic_omdoc/contentPp.ml b/helm/ocaml/cic_omdoc/contentPp.ml index 58ba4873b..3967c6216 100644 --- a/helm/ocaml/cic_omdoc/contentPp.ml +++ b/helm/ocaml/cic_omdoc/contentPp.ml @@ -139,7 +139,17 @@ and parg indent = | Con.ArgMethod s -> prerr_endline ((blanks (indent+1)) ^ "A Method !!!") ;; -let print_proof p = pproof p 0; +let print_proof p = pproof p 0;; + +let print_obj (_,_,_,obj) = + match obj with + `Decl (_,decl) -> + pcontext_element 0 (decl:> Cic.annterm Content.in_proof_context_element) + | `Def (_,_,def) -> + pcontext_element 0 (def:> Cic.annterm Content.in_proof_context_element) + | `Joint _ as jo -> pcontext_element 0 jo +;; +