Package-level declarations

Types

Link copied to clipboard
data class PPrinter(val defaultWidth: Int = 100, val defaultHeight: Int = 500, val defaultIndent: Int = 2, val defaultEscapeUnicode: Boolean = false, val defaultShowFieldNames: Boolean = true, val colorLiteral: Attrs = FansiColor.Green, val colorApplyPrefix: Attrs = FansiColor.Yellow, val showGenericForCollections: Boolean = true) : Walker
Link copied to clipboard
Link copied to clipboard
class Renderer(val maxWidth: Int, val colorApplyPrefix: Attrs, val colorLiteral: Attrs, val indentStep: Int)

Basically like mkString, but for nested iterators. Used whenever you want to put stuff "in between" the elements of the larger iterator

Link copied to clipboard
class Result(val iter: Iterator<Str>, val completedLineCount0: () -> Int, val lastLineLength0: () -> Int)

The intermediate return type of the pretty-print system: provides an iterator which produces the actual string output, as well as metadata around that output that is only available after the iterator is exhausted

Link copied to clipboard
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

Link copied to clipboard
class Truncated(val chunks0: Iterator<Str>, val width: Int, val height: Int, val truncationMarker: String = "...") : Iterator<Str>

Wraps an input iterator of colored s, and produces the same s but truncated once the wrapped-at-[width] text reaches beyond a certain [height]

Link copied to clipboard
object Util
Link copied to clipboard
abstract class Walker

Functions

Link copied to clipboard