Enum parol::analysis::errors::GrammarAnalysisError
source · pub enum GrammarAnalysisError {
LeftRecursion {
recursions: Vec<RecursiveNonTerminal>,
},
UnreachableNonTerminals {
non_terminals: Vec<RelatedHint>,
},
NonProductiveNonTerminals {
non_terminals: Vec<RelatedHint>,
},
MaxKExceeded {
max_k: usize,
},
LALR1ParseTableConstructionFailed {
conflict: LRConflictError,
},
}
Expand description
Error type used by the crate::analysis module
Variants§
LeftRecursion
Left-recursions detected
Fields
§
recursions: Vec<RecursiveNonTerminal>
Recursions
UnreachableNonTerminals
Unreachable non-terminals are not allowed.
Fields
§
non_terminals: Vec<RelatedHint>
Non-terminals
NonProductiveNonTerminals
Nonproductive non-terminals are not allowed.
Fields
§
non_terminals: Vec<RelatedHint>
Non-terminals
MaxKExceeded
Maximum lookahead exceeded.
LALR1ParseTableConstructionFailed
The LALR(1) parse table construction failed with conflicts.
Fields
§
conflict: LRConflictError
Conflict
Trait Implementations§
source§impl Debug for GrammarAnalysisError
impl Debug for GrammarAnalysisError
source§impl Display for GrammarAnalysisError
impl Display for GrammarAnalysisError
source§impl Error for GrammarAnalysisError
impl Error for GrammarAnalysisError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GrammarAnalysisError
impl RefUnwindSafe for GrammarAnalysisError
impl Send for GrammarAnalysisError
impl Sync for GrammarAnalysisError
impl Unpin for GrammarAnalysisError
impl UnwindSafe for GrammarAnalysisError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more