X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationRew.ml;h=27040d5ae8d41138bb098001bb395ea377eb487a;hb=c784fcbfe47beaa2c399cb71b3d2b84dedc4fb76;hp=aa171c55ccedd2aed0a86da4b99de8b0e73b08b8;hpb=c11f4fe10591d568afb410e5d96061448a437254;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationRew.ml b/helm/ocaml/cic_notation/cicNotationRew.ml index aa171c55c..27040d5ae 100644 --- a/helm/ocaml/cic_notation/cicNotationRew.ml +++ b/helm/ocaml/cic_notation/cicNotationRew.ml @@ -158,19 +158,25 @@ let pp_ast0 t k = match outty_opt with | None -> [] | Some outty -> - [ builtin_symbol "["; remove_level_info (k outty); - builtin_symbol "]"; break ] + [ keyword "return"; break; remove_level_info (k outty)] in let indty_box = match indty_opt with | None -> [] - | Some (indty, href) -> [ keyword "in"; ident_w_href href indty ] + | Some (indty, href) -> [ keyword "in"; break; ident_w_href href indty ] in let match_box = - hvbox false true [ - keyword "match"; break; - hvbox false false ([ top_pos (k what) ] @ indty_box); break; - keyword "with" ] + hvbox false false [ + hvbox false true [ + hvbox false true [ keyword "match"; break; top_pos (k what) ]; + break; + hvbox false true indty_box; + break; + hvbox false true outty_box + ]; + break; + keyword "with" + ] in let mk_case_pattern (head, href, vars) = hbox true false (ident_w_href href head :: List.map aux_var vars) @@ -209,7 +215,7 @@ let pp_ast0 t k = in add_level_info Ast.simple_prec Ast.simple_assoc (hvbox false false [ - hvbox false false (outty_box @ [ match_box ]); break; + hvbox false false ([match_box]); break; hbox false false [ hvbox false false patterns'' ] ]) | Ast.Cast (bo, ty) -> add_level_info Ast.simple_prec Ast.simple_assoc