Enum menhir_runtime::Error [] [src]

pub enum Error<Lexer: Lexer, Parser: LRParser> {
    SyntaxError(SyntaxError<Lexer, Parser>),
    LexerError(Lexer::Error),
}

A fatal (non-recoverable parsing error).

This is the type returned by a Menhir parser upon encountering an error it cannot or failed to recover from.

Variants

The parser encountered a syntax error that couldn't be recovered. See SyntaxError.

The lexer returned an error when asked for a token, typically an IO error or the end of the stream. The carried value depends on the actual instance of Lexer being used.