SCM Repository
View of /sml/trunk/src/smlnj-lib/PP/src/pp-desc.sml
Parent Directory
|
Revision Log
Revision 409 -
(download)
(annotate)
Fri Sep 3 00:21:52 1999 UTC (21 years, 7 months ago) by monnier
File size: 954 byte(s)
Fri Sep 3 00:21:52 1999 UTC (21 years, 7 months ago) by monnier
File size: 954 byte(s)
Initial revision
(* pp-desc.sml * * COPYRIGHT (c) 1999 Bell Labs, Lucent Technologies. * * A tree representation of pretty printing directives. *) structure PPDesc = struct datatype indent = Abs of int (* indent relative to outer indentation *) | Rel of int (* indent relative to start of box *) (* The pp_desc type is parameterized over the token, style, and device * types. *) datatype ('tok, 'sty, 'dev) pp_desc = HBox of ('tok, 'sty, 'dev) pp_desc list | VBox of (indent * ('tok, 'sty, 'dev) pp_desc list) | HVBox of (indent * ('tok, 'sty, 'dev) pp_desc list) | HOVBox of (indent * ('tok, 'sty, 'dev) pp_desc list) | Box of (indent * ('tok, 'sty, 'dev) pp_desc list) | Token of 'tok | String of string | Style of ('sty * ('tok, 'sty, 'dev) pp_desc list) | Break of {nsp : int, offset : int} | NewLine | NBSpace of int | Control of ('dev -> unit) end;
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |