package output
- Alphabetic
- Public
- All
Type Members
-
trait
Filters
extends AnyRef
A collection of useful string filters.
A collection of useful string filters. They are particularly intended to be filters for pretty-printer output so that the output can be tailored for a restricted setting in which it will be put. E.g., a program might be pretty-printed to show in a GUI window of a particular size, or lines indented greater than a certain amount might be omitted to show an overview.
-
abstract
class
Fixity
extends AnyRef
The possible fixities of operators.
-
case class
Infix
(side: Side) extends Fixity with Product with Serializable
The binary operator occurs in infix position (i.e., between its two operands).
-
trait
ParenPrettyPrinter
extends PrettyPrinter
A pretty-printer with support for pretty-printing expressions with minimal parenthesisation.
A pretty-printer with support for pretty-printing expressions with minimal parenthesisation.
Based on algorithm in "Unparsing expressions with prefix and postfix operators", Ramsey, SP&E, 28 (12), October 1998. We have not implemented support for arbitrary arity infix operators.
-
trait
PrettyBinaryExpression
extends PrettyOperatorExpression
Binary expressions that are to be pretty-printed.
Binary expressions that are to be pretty-printed.
leftandrightgive the two operand expressions andopthe string that is to be used as the output of the operator. -
trait
PrettyExpression
extends AnyRef
Super type of all expressions that are to be pretty-printed.
-
trait
PrettyOperatorExpression
extends PrettyExpression
An expression that contains an operator.
An expression that contains an operator. Defines
priorityto relate the operator to other operators (lower number is higher priority, no default). Also definesfixityto specify the relationship between the operator and its operand(s) (no default). -
trait
PrettyPrinter
extends PrettyPrinterBase
A pretty-printer implemented using the continuation-based approach from Section 3.3 of Swierstra, S., and Chitil, O.
A pretty-printer implemented using the continuation-based approach from Section 3.3 of Swierstra, S., and Chitil, O. Linear, bounded, functional pretty-printing. Journal of Functional Programming 19, 01 (2008), 1–16.
defaultIndentspecifies the indentation to use if none is specified in uses of thenestmethod (default: 4).defaultWidthspecifies the default output width (default: 75). -
trait
PrettyPrinterBase
extends AnyRef
The interface of a pretty printer using combinators from Swierstra and Chitil (Linear, bounded, functional pretty-printing, Journal of Functional Programming, 19 (1), 2009) and Leijen's PPrint library.
The interface of a pretty printer using combinators from Swierstra and Chitil (Linear, bounded, functional pretty-printing, Journal of Functional Programming, 19 (1), 2009) and Leijen's PPrint library. The latter is a version of Wadler's library which was inspired by an earlier library by Hughes.
-
trait
PrettyUnaryExpression
extends PrettyOperatorExpression
Unary expressions that are to be pretty-printed.
Unary expressions that are to be pretty-printed.
expgives the operand expressions andopthe string that is to be used as the output of the operator. -
abstract
class
Side
extends AnyRef
The sides that an expression may appear on inside another expression or associativities that infix operators can have.
Value Members
-
object
Filters
extends Filters
A collection of useful string filters.
-
object
LeftAssoc
extends Side with Product with Serializable
The left side or left associativitiy of an infix operator.
-
object
NonAssoc
extends Side with Product with Serializable
No side or non-associativitiy of an infix operator.
-
object
Postfix
extends Fixity with Product with Serializable
The unary operator occurs in postfix position (i.e., after its operand).
-
object
Prefix
extends Fixity with Product with Serializable
The unary operator occurs in prefix position (i.e., before its operand).
-
object
PrettyPrinter
extends PrettyPrinter
Default pretty printer.
-
object
RightAssoc
extends Side with Product with Serializable
The right side or right associativitiy of an infix operator.