(* PROJECT HELM *)
(* *)
(* Andrea Asperti <asperti@cs.unibo.it> *)
-(* 28/6/2003 *)
+(* 28/6/2003 *)
(* *)
(**************************************************************************)
[Box.Text([],"(");
Box.V([],List.map ast2box l);
Box.Text([],")")])
+ | A.Binder (`Forall, (Cic.Anonymous, typ), body)
+ | A.Binder (`Pi, (Cic.Anonymous, typ), body) ->
+ Box.V(map_attributes attr,
+ [Box.H([],[(match typ with
+ | None -> Box.Text([], "?")
+ | Some typ -> ast2box typ);
+ Box.smallskip;
+ Box.Text([], "\\to")]);
+ Box.indent(ast2box body)])
| A.Binder(kind, var, body) ->
Box.V(map_attributes attr,
[Box.H([],[resolve_binder kind;
[Box.V([],
(make_rule "[" r)::(List.map (make_rule "|") tl));
Box.Text([],"]")]) in
+ let ty_box =
+ match ty with
+ | Some ty ->
+ [ Box.H([],[Box.Text([],"[");
+ ast2box ty;
+ Box.Text([],"]")]) ]
+ | None -> []
+ in
if is_big arg then
Box.V(map_attributes attr,
- [Box.Text([],"match");
+ ty_box @
+ [Box.Text([],"match");
Box.H([],[Box.skip;
bigast2box arg;
Box.smallskip;
plbox])
else
Box.V(map_attributes attr,
+ ty_box @
[Box.H(map_attributes attr,
[Box.Text([],"match");
Box.smallskip;