pub enum Error {
IoError {
error: Error,
context: String,
},
ParseError {
msg: String,
span: Span,
},
TypeError {
msg: String,
span: Span,
},
UnreachableError {
msg: String,
span: Span,
},
OverlapError {
msg: String,
rules: Vec<Span>,
},
ShadowedError {
shadowed: Vec<Span>,
mask: Span,
},
}Expand description
Errors produced by ISLE.
Variants§
IoError
An I/O error.
Fields
ParseError
The input ISLE source has a parse error.
TypeError
The input ISLE source has a type error.
UnreachableError
The rule can never match any input.
OverlapError
The rules mentioned overlap in the input they accept.
Fields
ShadowedError
The rules can never match because another rule will always match first.