Expand description
Error types and display formatting for parse errors.
This module provides structured error types for the lexer and parser, with rich diagnostic output including:
- Source location with line/column numbers
- Syntax-highlighted error messages
- Socratic explanations for common mistakes
- Spelling suggestions for unknown words
§Error Display
Errors can be displayed with source context using ParseError::display_with_source,
which produces rustc-style error output with underlined spans.
Structs§
- Parse
Error - A parse error with location information.