1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use crate::operator::Operator; #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum Instruction<'s> { Nop, Exit, Pop, Duplicate, Conditional, LoadInt(u32), LoadStr(&'s str), LoadVar(&'s str), StoreVar(&'s str), CallBuiltin(&'s str), NewLine, Wait, Operator(Operator), Goto(usize), GotoIfNot(usize), MarkStack, RemoveMarked, }