Enum lalrpop_util::ParseError
[−]
[src]
pub enum ParseError<L, T, E> { InvalidToken { location: L, }, UnrecognizedToken { token: Option<(L, T, L)>, expected: Vec<String>, }, ExtraToken { token: (L, T, L), }, User { error: E, }, }
Variants
InvalidToken
Generated by the parser when it encounters a token (or EOF) it did not expect.
Fields
location: L |
UnrecognizedToken
Generated by the parser when it encounters a token (or EOF) it did not expect.
Fields
token: Option<(L, T, L)> | If this is |
expected: Vec<String> | The set of expected tokens: these names are taken from the grammar and hence may not necessarily be suitable for presenting to the user. |
ExtraToken
Generated by the parser when it encounters additional, unexpected tokens.
Fields
token: (L, T, L) |
User
Custom error type.
Fields
error: E |