Skip to main content

Module error

Module error 

Source
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§

BudgetTracker
Tracks budget consumption during parsing.
ErrorContext
Rich error context with source line and fix suggestions
ParseBudget
Budget limits for parser operations to prevent runaway parsing.
ParseOutput
Structured output from parsing, combining AST with all diagnostics.

Enums§

ParseError
Comprehensive error types that can occur during Perl parsing workflows
RecoveryKind
What kind of recovery was applied at a RecoverySite.
RecoverySite
Where in the parse tree a recovery was performed.

Functions§

get_error_contexts
Enrich a list of errors with source context

Type Aliases§

ParseResult
Result type for parser operations in the Perl parsing workflow pipeline