[][src]Enum liblet::TokenizerError

pub enum TokenizerError {
    ProductionNoLhs,
    ProductionNoRhs(String),
    ProductionNoSeparator(String),
    ProductionMultipleOneLine(usize),
    ProductionMultiple(String),
    ProductionEmpty(String),
    TransitionNoTo(String),
    TransitionNoLabel(String),
    TransitionMultipleOneLine(usize),
    TransitionMultiple(String),
    TransitionEmpty(String),
}

Errors resulting from tokenizing strings.

When parsing custom strings, invalid or bad formatted strings can generate tokenizer errors, according to which representation is expected.

Variants

ProductionNoLhs

Error for productions which doesn't have a left hand side

ProductionNoRhs(String)

Error for productions which doesn't have a right hand side

ProductionNoSeparator(String)

Error for productions which doesn't have the production separator (see Production module for further details)

ProductionMultipleOneLine(usize)

Error for having multiple productions on the same row/line

ProductionMultiple(String)

Error for having multiple productions when expecting only one in the whole given string

ProductionEmpty(String)

Error for having a given string not containing any production but at least one was expected (see Production documentation for further details)

TransitionNoTo(String)

Error for having no "to" part in the transition

TransitionNoLabel(String)

Error for having no "label" part in the transition

TransitionMultipleOneLine(usize)

Error for having no "from" part in the transition

TransitionMultiple(String)

Error for having too many transitions but expected one in the whole given string

TransitionEmpty(String)

Error for having a given string not containing any transition but at least one was expected (see Transition documentation for further details)

Trait Implementations

impl Clone for TokenizerError[src]

impl Debug for TokenizerError[src]

impl Display for TokenizerError[src]

impl Eq for TokenizerError[src]

impl Error for TokenizerError[src]

impl From<TokenizerError> for TransitionError[src]

impl From<TokenizerError> for ProductionError[src]

impl Hash for TokenizerError[src]

impl PartialEq<TokenizerError> for TokenizerError[src]

impl StructuralEq for TokenizerError[src]

impl StructuralPartialEq for TokenizerError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.