Tree

interface Tree

A lazy AST representing pretty-printable text. Models foo(a, b) foo op bar, and terminals foo in both lazy and eager forms

Inheritors

Types

Link copied to clipboard
data class Apply(val prefix: String, val body: Iterator<Tree>) : Tree

Foo(aa, bbb, cccc)

Link copied to clipboard
data class Ctx(val width: Int, val leftOffset: Int, val indentCount: Int, val indentStep: Int, val literalColor: Attrs, val applyPrefixColor: Attrs)
Link copied to clipboard
data class Infix(val lhs: Tree, val op: String, val rhs: Tree) : Tree

LHS op RHS

Link copied to clipboard
data class KeyValue(val key: String, val value: Tree) : Tree

x = y

Link copied to clipboard
data class Lazy(val body0: (Tree.Ctx) -> Iterator<String>) : Tree

xyz

Link copied to clipboard
data class Literal(val body: String) : Tree

"xyz"