pub(crate) type LalrpopError = ParseError<Location, Token, UserParseError>;
Aliased Type§
enum LalrpopError {
InvalidToken {
location: Location,
},
UnrecognizedEof {
location: Location,
expected: Vec<String>,
},
UnrecognizedToken {
token: (Location, Token, Location),
expected: Vec<String>,
},
ExtraToken {
token: (Location, Token, Location),
},
User {
error: UserParseError,
},
}
Variants§
InvalidToken
Generated by the parser when it encounters a token (or EOF) it did not expect.
UnrecognizedEof
Generated by the parser when it encounters an EOF it did not expect.
Fields
UnrecognizedToken
Generated by the parser when it encounters a token it did not expect.
Fields
ExtraToken
Generated by the parser when it encounters additional, unexpected tokens.
User
Custom error type.
Fields
§
error: UserParseError