Expand description
Error types and recovery strategies for parser failures. Error types and recovery helpers for the parser engine.
Defines error classifications and recovery workflows used during the Parse and Analyze stages of the LSP pipeline. These types are surfaced in diagnostics, syntax checking, and recovery-oriented parsing APIs.
§Examples
use perl_parser_core::error::ParseError;
let err = ParseError::UnexpectedEof;
println!("Parse error: {}", err);Modules§
- classifier
- Error types and result aliases used by the parser engine. Error classification and diagnostic generation for parsed Perl code. Error classification and diagnostic generation for Perl parsing workflows
- context_
impls - Implementation of ErrorRecovery trait for ParserContext.
- recovery
- Error types and result aliases used by the parser engine. Error recovery strategies and traits for the Perl parser. Error recovery for the Perl parser
Structs§
- Budget
Tracker - Error types and result aliases used by the parser engine. Tracks budget consumption during parsing.
- Error
Context - Error types and result aliases used by the parser engine. Rich error context with source line and fix suggestions
- Parse
Budget - Error types and result aliases used by the parser engine. Budget limits for parser operations to prevent runaway parsing.
- Parse
Output - Error types and result aliases used by the parser engine. Structured output from parsing, combining AST with all diagnostics.
Enums§
- Parse
Error - Error types and result aliases used by the parser engine. Comprehensive error types that can occur during Perl parsing workflows
- Recovery
Kind - Error types and result aliases used by the parser engine.
What kind of recovery was applied at a
RecoverySite. - Recovery
Site - Error types and result aliases used by the parser engine. Where in the parse tree a recovery was performed.
Functions§
- get_
error_ contexts - Error types and result aliases used by the parser engine. Enrich a list of errors with source context
Type Aliases§
- Parse
Result - Error types and result aliases used by the parser engine. Result type for parser operations in the Perl parsing workflow pipeline