Skip to main content

perl_parser_core/engine/error/
mod.rs

1//! Error types and recovery helpers for the parser engine.
2//!
3//! Defines error classifications and recovery workflows used during the Parse and
4//! Analyze stages of the LSP pipeline. These types are surfaced in diagnostics,
5//! syntax checking, and recovery-oriented parsing APIs.
6//!
7//! # Examples
8//!
9//! ```rust
10//! use perl_parser_core::error::ParseError;
11//!
12//! let err = ParseError::UnexpectedEof;
13//! println!("Parse error: {}", err);
14//! ```
15
16/// Implementation of ErrorRecovery trait for ParserContext.
17pub mod context_impls;
18
19/// Error classification and diagnostic generation.
20pub mod classifier {
21    pub use crate::syntax::error::classifier::*;
22}
23/// Error recovery strategies and traits for the Perl parser.
24pub mod recovery {
25    pub use crate::syntax::error::recovery::*;
26}
27
28/// Error types and result aliases used by the parser engine.
29pub use crate::syntax::error::{
30    BudgetTracker, ErrorContext, ParseBudget, ParseError, ParseOutput, ParseResult, RecoveryKind,
31    RecoverySalvageClass, RecoverySalvageProfile, RecoverySite, get_error_contexts,
32};