Expand description
Source formatter for Gruel (ADR-0093).
Parses source with the existing chumsky frontend, walks the AST, and emits canonical text. Comment weaving is delegated to a side trivia scan (ADR-0093 Phase 4).
Re-exports§
pub use printer::Printer;
Modules§
- emit
- AST walker that emits canonical Gruel text into a
Printer. - printer
- Output buffer + trivia weaving for the formatter (ADR-0093).
- trivia
- Trivia scanner (ADR-0093 Phase 4).
Enums§
- FmtError
- Top-level error returned from
format_source.
Functions§
- format_
source - Format
srcto canonical Gruel form. ReturnsErrif the source does not lex or parse.