SCM Repository
View of /sml/trunk/src/smlnj-lib/PP/src/pp-stream-sig.sml
Parent Directory
|
Revision Log
Revision 290 -
(download)
(annotate)
Sat May 22 21:01:25 1999 UTC (21 years, 11 months ago) by monnier
File size: 1526 byte(s)
Sat May 22 21:01:25 1999 UTC (21 years, 11 months ago) by monnier
File size: 1526 byte(s)
This commit was generated by cvs2svn to compensate for changes in r289, which included commits to RCS files with non-trunk default branches.
(* pp-stream-sig.sml * * COPYRIGHT (c) 1997 Bell Labs, Lucent Technologies. * * This interface provides a output stream interface to pretty printing. *) signature PP_STREAM = sig type device type stream type token (* tokens are an abstraction of strings (allowing for different * widths and style information). *) type style datatype indent = Abs of int (* indent relative to outer indentation *) | Rel of int (* indent relative to start of box *) val openStream : device -> stream val flushStream : stream -> unit val closeStream : stream -> unit val openHBox : stream -> unit val openVBox : stream -> indent -> unit val openHVBox : stream -> indent -> unit val openHOVBox : stream -> indent -> unit val openBox : stream -> indent -> unit val closeBox : stream -> unit val token : stream -> token -> unit val string : stream -> string -> unit val pushStyle : (stream * style) -> unit val popStyle : stream -> unit val break : stream -> {nsp : int, offset : int} -> unit val space : stream -> int -> unit (* space n == break{nsp=n, offset=0} *) val cut : stream -> unit (* cut == break{nsp=0, offset=0} *) val newline : stream -> unit val nbSpace : stream -> int -> unit (* emits a nonbreakable space *) val onNewline : stream -> unit -> unit (* the command is executed iff it is preceeded by a newline *) val control : stream -> (device -> unit) -> unit end
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |