Enum malk_lexer::LexError [] [src]

pub enum LexError<'s> {
    InvalidSymbolTable(InvalidSymbolTableError<'s>),
    InvalidClosingBracket {
        open_pos: TextPos,
        close_pos: TextPos,
    },
    UnclosedBracket {
        open_pos: TextPos,
    },
    UnexpectedChar {
        pos: TextPos,
        c: char,
    },
    UnexpectedClosingBracket {
        pos: TextPos,
        c: char,
    },
    UnclosedString {
        start_pos: TextPos,
    },
    InvalidEscapeDigit {
        c: char,
        pos: TextPos,
    },
    InvalidEscapeCode {
        code: u32,
        pos: TextPos,
    },
    InvalidEscapeChar {
        c: char,
        pos: TextPos,
    },
    InvalidUnicodeEscape {
        pos: TextPos,
    },
    InvalidUnicodeEscapeSyntax {
        pos: TextPos,
    },
}

Variants

Fields of InvalidClosingBracket

Fields of UnclosedBracket

Fields of UnexpectedChar

Fields of UnexpectedClosingBracket

Fields of UnclosedString

Fields of InvalidEscapeDigit

Fields of InvalidEscapeCode

Fields of InvalidEscapeChar

Fields of InvalidUnicodeEscape

Fields of InvalidUnicodeEscapeSyntax

Trait Implementations

impl<'s> Debug for LexError<'s>
[src]

Formats the value using the given formatter.

impl<'s> Clone for LexError<'s>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'s> PartialEq for LexError<'s>
[src]

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

This method tests for !=.