Enum xxcalc::ParsingError [] [src]

pub enum ParsingError {
    UnknownOperator(charusize),
    UnexpectedToken(Tokenusize),
    MissingBracket(usize),
    EmptyExpression,
}

An error that occurs during token processing, usually by a parser.

Variants

Encountered an operator which is not recognized by a parser. The operator is a first argument, while its position is the last one.

Encountered a Token with no meaning to the parser, probably a Token::Unknown. This token is a first argument, while its position is the last one.

Detected a missing opening or closing bracket at given position.

Provided token list is empty, where expected it shouldn't be so.

Trait Implementations

impl Debug for ParsingError
[src]

Formats the value using the given formatter.

impl PartialEq for ParsingError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.