Enum ratel::error::ParseError [] [src]

pub enum ParseError {
    UnexpectedEndOfProgram,
    UnexpectedToken {
        source: String,
        start: usize,
        end: usize,
    },
}

Error type returned by parser::parse. This error will include owned String of the source code where the error occured, so that a meaningful error can be printed out.

Variants

Fields of UnexpectedToken

Trait Implementations

impl Debug for ParseError
[src]

Formats the value using the given formatter.

impl Display for ParseError
[src]

Formats the value using the given formatter. Read more