Skip to main content

Module error

Module error 

Source
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);

Re-exports§

pub use crate::syntax::error::BudgetTracker;
pub use crate::syntax::error::ErrorContext;
pub use crate::syntax::error::ParseBudget;
pub use crate::syntax::error::ParseError;
pub use crate::syntax::error::ParseOutput;
pub use crate::syntax::error::ParseResult;
pub use crate::syntax::error::RecoveryKind;
pub use crate::syntax::error::RecoverySalvageClass;
pub use crate::syntax::error::RecoverySalvageProfile;
pub use crate::syntax::error::RecoverySite;
pub use crate::syntax::error::get_error_contexts;

Modules§

classifier
Error classification and diagnostic generation.
context_impls
Implementation of ErrorRecovery trait for ParserContext.
recovery
Error recovery strategies and traits for the Perl parser.