Enum rurtle::lex::LexError [] [src]

pub enum LexError {
    UnterminatedString(u32),
    InvalidNumber(u32, String),
    UnexpectedCharacter(u32, char),
}

Errors that may arise when lexing the input. The first member is always the line number.

Variants

UnterminatedString

Unterminated string/closing quotes missing

InvalidNumber

Invalid number literal

UnexpectedCharacter

Trait Implementations

impl Display for LexError

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

impl Error for LexError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl Debug for LexError

fn fmt(&self, __arg_0: &mut Formatter) -> Result