Overview  Index  Help 
SMLFormat

PRINTER_PARAMETER

All Known Implementing Modules:

PrinterParameterSMLFormat.PrinterParameter


signature PRINTER_PARAMETER =
sig
  datatype parameter =
           Newline of string
         | Space of string
         | Columns of int
         | GuardLeft of string
         | GuardRight of string
  val defaultNewline : string
  val defaultSpace : string
  val defaultColumns : int
  val defaultGuardLeft : string
  val defaultGuardRight : string
end

parameter for pretty-printer.

Author:
YAMATODANI Kiyoshi
Version:
$Id: SigPRINTER_PARAMETER.html,v 1.5 2007/03/27 15:03:01 kiyoshiy Exp $

   
Datatype detail

parameter

datatype parameter =
         Newline of string
       | Space of string
       | Columns of int
       | GuardLeft of string
       | GuardRight of string

 
DataConstructor detail

Newline

constructor Newline : string -> parameter

a string used to begin a new line. For example, "\n" or "<br>".


Space

constructor Space : string -> parameter

a string used to insert a space. For example, " " or "&nbsp;". The specified string is considered to occupy 1 column in the formatted output.


Columns

constructor Columns : int -> parameter

the desired number of columns in which the output is formatted.


GuardLeft

constructor GuardLeft : string -> parameter

a string to be used to enclose at the left side of Guard. For example, "(" or "[". The specified string is considered to occupy 1 column in the formatted output.


GuardRight

constructor GuardRight : string -> parameter

a string to be used to enclose at the right side of Guard. For example, ")" or "]". The specified string is considered to occupy 1 column in the formatted output.

 
Value detail

defaultNewline

val defaultNewline : string

Its value is "\n".


defaultSpace

val defaultSpace : string

Its value is " ".


defaultColumns

val defaultColumns : int

Its value is 80.


defaultGuardLeft

val defaultGuardLeft : string

Its value is "(".


defaultGuardRight

val defaultGuardRight : string

Its value is ")".

 


Overview  Index  Help 
SMLFormat: Pretty-Printer library for SML