Trait menhir_runtime::LRErrors [] [src]

pub trait LRErrors: LRParser {
    fn message(state: Self::State) -> Option<&'static str>;
}

Extension trait for parser that can provide detailed error messages.

Menhir will generate an implementation of this trait for the parser type if the grammar file was compiled with the --compile-errors option. See the manual for information about how to use this feature.

Required Methods

Gives a proper error message to describe the situation in which the parser entered error-handling mode.

Returns the message provided by the user for this state in the error file given to the --compiler-errors option.

Implementors