Type Alias qasmsim::error::ParseError
source · pub type ParseError = ParseError<Location, Tok, LexicalError<Location>>;
Expand description
Represent a parsing error.
Aliased Type§
enum ParseError {
InvalidToken {
location: Location,
},
UnrecognizedEOF {
location: Location,
expected: Vec<String>,
},
UnrecognizedToken {
token: (Location, Tok, Location),
expected: Vec<String>,
},
ExtraToken {
token: (Location, Tok, Location),
},
User {
error: LexicalError<Location>,
},
}
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: LexicalError<Location>
Custom error type.