X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_transformations%2FcicAstPp.ml;h=8076e006204171a695b0087af9bccc28ebc69757;hb=29a3bd5d160f31873236c93a008a9e4fd31c305e;hp=bd9eea6012927c97c6a64f0cb8fdf8d8483a6117;hpb=ee02781cec1158f51e98ca73a14b63841e5ba545;p=helm.git diff --git a/helm/ocaml/cic_transformations/cicAstPp.ml b/helm/ocaml/cic_transformations/cicAstPp.ml index bd9eea601..8076e0062 100644 --- a/helm/ocaml/cic_transformations/cicAstPp.ml +++ b/helm/ocaml/cic_transformations/cicAstPp.ml @@ -35,7 +35,6 @@ let pp_name = function Cic.Anonymous -> "_" | Cic.Name s -> s let rec pp_term = function | CicAst.AttributedTerm (_, term) -> pp_term term - | CicAst.Appl terms -> sprintf "(%s)" (String.concat " " (List.map pp_term terms)) | CicAst.Binder (`Forall, (Cic.Anonymous, typ), body) @@ -62,10 +61,12 @@ let rec pp_term = function sprintf "%s = %s" (pp_capture_variable var) (pp_term body)) definitions)) (pp_term term) - | CicAst.Ident (name, Some []) - | CicAst.Ident (name, None) -> + | CicAst.Ident (name, Some []) | CicAst.Ident (name, None) + | CicAst.Uri (name, Some []) | CicAst.Uri (name, None) -> name - | CicAst.Ident (name, Some substs) -> sprintf "%s[%s]" name (pp_substs substs) + | CicAst.Ident (name, Some substs) + | CicAst.Uri (name, Some substs) -> + sprintf "%s \\subst [%s]" name (pp_substs substs) | CicAst.Implicit -> "?" | CicAst.Meta (index, substs) -> sprintf "%d[%s]" index @@ -77,12 +78,13 @@ let rec pp_term = function | CicAst.Sort `Type -> "Type" | CicAst.Sort `CProp -> "CProp" | CicAst.Symbol (name, _) -> name + | CicAst.UserInput -> "%" -and pp_subst (name, term) = sprintf "%s := %s" name (pp_term term) +and pp_subst (name, term) = sprintf "%s \\Assign %s" name (pp_term term) and pp_substs substs = String.concat "; " (List.map pp_subst substs) and pp_pattern ((head, vars), term) = - sprintf "%s -> %s" + sprintf "%s \\Rightarrow %s" (match vars with | [] -> head | _ ->