Expand description
Lemma source code formatting.
Formats parsed specs into canonical Lemma source text. Uses AsLemmaSource
and Expression::Display for syntax; this module handles layout only.
Constants§
- MAX_
COLS - Soft line length limit. Longer lines may be wrapped (unless clauses, expressions). Data and other constructs are not broken if they exceed this.
Functions§
- format_
source - Parse a source string and format it to canonical Lemma source.
- format_
specs - Format a sequence of parsed specs into canonical Lemma source.