[−][src]Enum liblet::grammar::GrammarError
Variants
Error returned if any of the given non terminals is an invalid non terminal symbol.
Error returned if any of the given terminals is an invalid terminal symbol.
WrongStartSymbol(Symbol)
Error returned if the given start symbol is an invalid non terminal symbol.
SymbolError(SymbolError)
Error returned if an error occurred during symbol creation.
ProductionError(ProductionError)
Error returned if an error occurred during productions creation.
Error returned if trying to create a grammar without a start symbol.
The optional passed argument is the reason which caused the grammar to not have a start symbol and can be useful for debugging purposes
When trying to create a grammar from string, the start symbol will be taken from the left hand side of the first produciton rule, that is, it should be a 1 long collection of symbols.
MultipleStartSymbols(Production)
Error returned if trying to create a grammar with too many start symbols.
The passed production argument is the production from which a start symbol has been tried to extract.
When trying to create a grammar from string, the start symbol will be taken from the left hand side of the first produciton rule, that is, it should be a 1 long collection of symbols.
Trait Implementations
impl Clone for GrammarError
[src]
fn clone(&self) -> GrammarError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GrammarError
[src]
impl Display for GrammarError
[src]
impl Eq for GrammarError
[src]
impl Error for GrammarError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ProductionError> for GrammarError
[src]
fn from(e: ProductionError) -> Self
[src]
impl Hash for GrammarError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<GrammarError> for GrammarError
[src]
fn eq(&self, other: &GrammarError) -> bool
[src]
fn ne(&self, other: &GrammarError) -> bool
[src]
impl StructuralEq for GrammarError
[src]
impl StructuralPartialEq for GrammarError
[src]
Auto Trait Implementations
impl RefUnwindSafe for GrammarError
impl Send for GrammarError
impl Sync for GrammarError
impl Unpin for GrammarError
impl UnwindSafe for GrammarError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,