Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /smlnj-lib/branches/rt-transition/PP/src/pp-desc-sig.sml
ViewVC logotype

View of /smlnj-lib/branches/rt-transition/PP/src/pp-desc-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1830 - (download) (annotate)
Sun Jul 24 00:41:21 2005 UTC (13 years, 11 months ago) by jhr
Original Path: sml/trunk/src/smlnj-lib/PP/src/pp-desc-sig.sml
File size: 957 byte(s)
  Fix some odds and ends with the PP library.
(* pp-desc-sig.sml
 *
 * COPYRIGHT (c) 2005 John Reppy (http://www.cs.uchicago.edu/~jhr)
 * All rights reserved.
 *
 * This interface provides a declarative way to specify pretty-printing.
 *)

signature PP_DESC =
  sig
    structure PPS : PP_STREAM

    type pp_desc

    val hBox    : pp_desc list -> pp_desc
    val vBox    : (PPS.indent * pp_desc list) -> pp_desc
    val hvBox   : (PPS.indent * pp_desc list) -> pp_desc
    val hovBox  : (PPS.indent * pp_desc list) -> pp_desc
    val box     : (PPS.indent * pp_desc list) -> pp_desc

    val token   : PPS.token -> pp_desc
    val string  : string -> pp_desc

    val style   : (PPS.style * pp_desc list) -> pp_desc

    val break   : {nsp : int, offset : int} -> pp_desc
    val space   : int -> pp_desc
    val cut     : pp_desc
    val newline : pp_desc
    val nbSpace : int -> pp_desc

    val control : (PPS.device -> unit) -> pp_desc

    val description : PPS.stream * pp_desc -> unit

  end


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0