Expand description
Parser engine components and supporting utilities. 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 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 recovery strategies and traits for the Perl parser. Error recovery for the Perl parser
Structs§
- Budget
Tracker - Tracks budget consumption during parsing.
- Error
Context - Rich error context with source line and fix suggestions
- Parse
Budget - Budget limits for parser operations to prevent runaway parsing.
- Parse
Output - Structured output from parsing, combining AST with all diagnostics.
Enums§
- Parse
Error - Comprehensive error types that can occur during Perl parsing workflows
- Recovery
Kind - What kind of recovery was applied at a
RecoverySite. - Recovery
Site - Where in the parse tree a recovery was performed.
Functions§
- get_
error_ contexts - Enrich a list of errors with source context
Type Aliases§
- Parse
Result - Result type for parser operations in the Perl parsing workflow pipeline