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 2980 - (download) (annotate)
Sat Apr 12 15:01:15 2008 UTC (11 years, 2 months ago) by jhr
File size: 957 byte(s)
  Create branch of SML/NJ Library to work around missing APIs.
(* 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