Enum parol_runtime::errors::ParserError
source · pub enum ParserError {
TreeError {
source: Error,
},
PredictionErrorWithExpectations {
cause: String,
input: Box<FileSource>,
error_location: Box<Location>,
unexpected_tokens: Vec<UnexpectedToken>,
expected_tokens: TokenVec,
source: Option<Box<ParolError>>,
},
UnprocessedInput {
input: Box<FileSource>,
last_token: Box<Location>,
},
PopOnEmptyScannerStateStack {
context: String,
input: FileSource,
source: LexerError,
},
InternalError(String),
}Variants§
TreeError
PredictionErrorWithExpectations
Fields
§
input: Box<FileSource>§
unexpected_tokens: Vec<UnexpectedToken>§
source: Option<Box<ParolError>>UnprocessedInput
PopOnEmptyScannerStateStack
InternalError(String)
Trait Implementations§
source§impl Debug for ParserError
impl Debug for ParserError
source§impl Display for ParserError
impl Display for ParserError
source§impl Error for ParserError
impl Error for ParserError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParserError> for ParolError
impl From<ParserError> for ParolError
source§fn from(source: ParserError) -> Self
fn from(source: ParserError) -> Self
Converts to this type from the input type.