Module pretty

Source
Expand description

Formatting utilities for Selection expressions.

This module defines pretty-printers and compact syntax renderers for selections, based on implementations of the SelectionSYM trait.

The Display implementation for Selection uses this module. Pretty-printing utilities for selection expressions.

This module defines SelectionSYM implementations that render selection expressions in human-readable or structured forms.

The Display implementation for Selection delegates to this module and uses the SelectionPretty representation.

Structs§

SelectionCompact
A structured formatter that renders Selection expressions in compact surface syntax.
SelectionPretty
A structured pretty-printer that renders Selection expressions in DSL constructor form.

Functions§

compact
Returns a SelectionCompact rendering of the given Selection expression.
pretty
Renders a Selection as a structured DSL expression.