From: Enrico Tassi Date: Fri, 29 Sep 2006 14:22:25 +0000 (+0000) Subject: hack to make the Pp work (sometimes) X-Git-Tag: make_still_working~6831 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=e13cffcb2d9b22f607034b15ec2e3abd47906602;p=helm.git hack to make the Pp work (sometimes) --- diff --git a/helm/software/components/acic_content/cicNotationPp.ml b/helm/software/components/acic_content/cicNotationPp.ml index 49cefaec7..785c8bd86 100644 --- a/helm/software/components/acic_content/cicNotationPp.ml +++ b/helm/software/components/acic_content/cicNotationPp.ml @@ -122,7 +122,7 @@ let rec pp_term ?(pp_parens = true) t = aux i [] t in let rec get_guard i = function - | [] -> assert false + | [] -> (*assert false*) Ast.Implicit | [term, _] when i = 1 -> term | _ :: tl -> get_guard (pred i) tl in @@ -132,7 +132,10 @@ let rec pp_term ?(pp_parens = true) t = let pvars, pbody = strip i typ in let _, bbody = strip i body in term, pvars, pbody, bbody - | _ -> assert false + | term, None -> + let pbody = Ast.Implicit in + let pvars, bbody = strip i body in + term, pvars, pbody, bbody in sprintf "%s %s on %s: %s \\def %s" (pp_term ~pp_parens:false term)