pub enum TulipacError {
Io {
path: PathBuf,
source: Error,
},
Lex {
offset: usize,
message: String,
},
Parse {
offset: usize,
message: String,
},
Semantic(String),
Irtg(IrtgError),
}Expand description
Failure while reading, parsing, validating, or compiling a Tulipac grammar.
Variants§
Io
A grammar or included file could not be read.
Lex
Tokenization failed.
Fields
Parse
The token stream did not match the Tulipac grammar.
Fields
Semantic(String)
Declarations were syntactically valid but inconsistent.
Irtg(IrtgError)
Conversion to rusty-alto’s IRTG representation failed.
Trait Implementations§
Source§impl Debug for TulipacError
impl Debug for TulipacError
Source§impl Display for TulipacError
impl Display for TulipacError
Source§impl Error for TulipacError
impl Error for TulipacError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl !RefUnwindSafe for TulipacError
impl !UnwindSafe for TulipacError
impl Freeze for TulipacError
impl Send for TulipacError
impl Sync for TulipacError
impl Unpin for TulipacError
impl UnsafeUnpin for TulipacError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more