Enum docs::bytecode_vm::bytecode::errors::CompileError
source · pub enum CompileError {
NotFinishedInMain,
IdentifierNotFound(Identifier),
CreationFailed(InstructionsError),
InstructionWriteError(InstructionsError),
ScopeCreateFaild(InstructionsError),
WrongPrefixOperator(Kind),
WrongInfixOperator(Kind),
}Variants§
NotFinishedInMain
compile had not ended in main scope
IdentifierNotFound(Identifier)
cannot find identifier on symbol table
CreationFailed(InstructionsError)
creation of super::compiler::Compiler have failed because of inner instruction failed
InstructionWriteError(InstructionsError)
failed to write (emit) instruction
ScopeCreateFaild(InstructionsError)
failed to create new scope bacause of
InstructionsError
WrongPrefixOperator(Kind)
WrongInfixOperator(Kind)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
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