Enum ablescript::error::ErrorKind
source · pub enum ErrorKind {
UnexpectedEoi,
InvalidToken,
UnexpectedToken(Token),
UnknownVariable(String),
MeloVariable(String),
LoopOpOutsideLoop,
NonExitingRlyeh(i32),
MissingLhs,
Brian(InterpretError),
Io(Error),
}
Variants§
UnexpectedEoi
Parser expected token, but none was available
InvalidToken
Parser encountered unknown token
UnexpectedToken(Token)
Parser expected certain token, but other one appeared
UnknownVariable(String)
Attempted to assign to undefined variable
MeloVariable(String)
Attempted to access banned variable
LoopOpOutsideLoop
Breaking / re-starting loop outside loop
NonExitingRlyeh(i32)
Rlyeh was executed but host interface’s exit doesn’t exit the program
MissingLhs
Missing left-hand side expression in binary expression
Brian(InterpretError)
Error when executing BF code
Io(Error)
IO Error
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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