| SMLFormat |
signature SMLFORMAT =
sig
structure FormatExpression : FORMAT_EXPRESSION
structure PrinterParameter : PRINTER_PARAMETER
structure BasicFormatters : BASIC_FORMATTERS
datatype parameter = datatype PrinterParameter.parameter
sharing type FormatExpression.expression = BasicFormatters.expression
exception Fail of string
val traceLevel : int ref
val prettyPrint : parameter list -> FormatExpression.expression list -> string
end
| Datatype detail |
|---|
datatype parameter = datatype PrinterParameter.parameter
| Value detail |
|---|
val traceLevel : int ref
fun prettyPrint parameter expressions
: parameter list -> FormatExpression.expression list -> string
This function tries to insert newline characters so that the text can fit within the specified column width, but it may exceed the specified column width if the column width is too small.
parameter
expressions
| Exception detail |
|---|
exception Fail of string
message
| SMLFormat: Pretty-Printer library for SML |