Enum js::syntax::parser::ParseError[src]

pub enum ParseError {
    Expected(Vec<TokenData>, Token, &'static str),
    ExpectedExpr(&'static str, Expr),
    UnexpectedKeyword(Keyword),
    AbruptEnd,
}

An error encountered during parsing an expression

Variants

Expected

When it expected a certain kind of token, but got another as part of something

ExpectedExpr

When it expected a certain expression, but got another

UnexpectedKeyword

When it didn't expect this keyword

AbruptEnd

When there is an abrupt end to the parsing

Trait Implementations

impl Show for ParseError

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

Derived Implementations

impl PartialEq for ParseError

fn eq(&self, __arg_0: &ParseError) -> bool

fn ne(&self, __arg_0: &ParseError) -> bool

impl Clone for ParseError

fn clone(&self) -> ParseError

fn clone_from(&mut self, source: &Self)