1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::vm::Vm;
use core::error::*;

#[derive(Debug, Copy, Clone)]
pub enum OpAction {
    None,
    GoTo(usize),
    Return,
}

pub trait Processor {
    fn process_op(
        _op: &String,
        _params: &[usize],
        _targets: &[usize],
        _vm: &mut Vm,
    ) -> SimpleResult<OpAction> {
        unimplemented!()
    }
}

pub struct EmptyProcessor {}
impl Processor for EmptyProcessor {}