Enum xxcalc::ParsingError
[−]
[src]
pub enum ParsingError {
UnknownOperator(char, usize),
UnexpectedToken(Token, usize),
MissingBracket(usize),
EmptyExpression,
}An error that occurs during token processing, usually by a parser.
Variants
UnknownOperator(char, usize)Encountered an operator which is not recognized by a parser. The operator is a first argument, while its position is the last one.
UnexpectedToken(Token, usize)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.
MissingBracket(usize)Detected a missing opening or closing bracket at given position.
EmptyExpressionProvided token list is empty, where expected it shouldn't be so.
Trait Implementations
impl Debug for ParsingError[src]
impl PartialEq for ParsingError[src]
fn eq(&self, __arg_0: &ParsingError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParsingError) -> bool
This method tests for !=.