How wide to allow a pretty-printed value to become before wrapping
How tall to allow the pretty-printed output to become
before truncated it with a ...
How many spaces to indent each nested Tree.Apply by
What color to assign to literals like "lol"
or 31337
What color to assign to Foo
in Foo(bar, baz)
Provide this to override how certain types are pretty-printed at runtime
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
Summoning an implicit TPrint[T]
provides a pretty-printed
string representation of the type T
, much better than is
provided by the default Type#toString
.
Summoning an implicit TPrint[T]
provides a pretty-printed
string representation of the type T
, much better than is
provided by the default Type#toString
. In particular
- More forms are properly supported and printed - Prefixed Types are printed un-qualified, according to what's currently in scope
A lazy AST representing pretty-printable text.
A lazy AST representing pretty-printable text. Models foo(a, b)
foo op bar
, and terminals foo
in both lazy and eager forms
Wraps an input iterator of colored fansi.Strs, and produces the same fansi.Strs but truncated once the wrapped-at-width text reaches beyond a certain height
Converts an Any into a large colored fansi.Str
Converts an Any into a large colored fansi.Str
What color to assign to Foo
in Foo(bar, baz)
What color to assign to Foo
in Foo(bar, baz)
What color to assign to literals like "lol"
or 31337
What color to assign to literals like "lol"
or 31337
How tall to allow the pretty-printed output to become
before truncated it with a ...
How tall to allow the pretty-printed output to become
before truncated it with a ...
How many spaces to indent each nested Tree.Apply by
How many spaces to indent each nested Tree.Apply by
How wide to allow a pretty-printed value to become before wrapping
How wide to allow a pretty-printed value to become before wrapping
Logs a given value to stdout with some metadata to identify where the log message came from.
Logs a given value to stdout with some metadata to identify where the log message came from. Hard-coded and not very flexible, but you can easily implement your own log method if you want to customize it further.
Converts an Any into a large colored fansi.Str
Converts an Any into a large colored fansi.Str
Converts an Any into an iterator of colored chunks, wrapped at a certain width and truncated at a certain height
Converts an Any into an iterator of colored chunks, wrapped at a certain width and truncated at a certain height
Contains a convenient default pre-configured PPrinter.
Hard-coded and inflexible, but feel free to instantiate your own PPrint if you want to customize it.