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