Expand description
Structured diagnostic formatting for CLI output.
Provides format_diagnostic() which renders a crate::error::ParseError
together with the relevant source line and a caret underline pointing at
the error location.
Functionsยง
- compute_
line_ starts - Precompute line start offsets for O(1) source line lookup.
- format_
diagnostic - Format a parse error with source-context display for CLI output.
- format_
diagnostics - Computes line starts once and reuses for multiple errors.