dlang 0.1.3

Programing language from scratch
Documentation
use crate::{bytecode_vm::bytecode::errors::FrameError, object::Object};

use super::super::bytecode::instruction::Instruction;

#[derive(Debug)]
pub enum VmError {
    InstructionReadFailure(FrameError),
    InvalidIntegerInstruction(Instruction),
    InvalidBoolInstruction(Instruction),
    InvalidStringInstruction(Instruction),
    TypeNotSame { left: Object, right: Object },
    NotABolean { obj: Object },
    NotAInt { obj: Object },

    JumpConditionNotABolean { obj: Object },
    IndexTargetNotAArray { obj: Object },
    IndexNotAInt { obj: Object },

    NotImplentedInstruction { ins: Instruction },
}