pub enum Error {
StatesOverflow,
CycleError(CycleError),
Conflict {
lalr_tables: Table,
state: StateIdx,
conflict: Conflict,
},
}
Expand description
An error occured while generating the LR table.
Variants§
StatesOverflow
The algorithm generated too many states.
CycleError(CycleError)
The grammar derives node ⇒+ node
for some node
.
Conflict
Fields
§
state: StateIdx
State in which the conflict occured.
Used to access a State
in the
LALR tables.
There is at least one LR conflict in the grammar.
Trait Implementations§
source§impl From<CycleError> for Error
impl From<CycleError> for Error
source§fn from(err: CycleError) -> Self
fn from(err: CycleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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