add mutable init_expr code

This commit is contained in:
NikVolf 2017-04-26 23:01:21 +03:00
parent aeae465b9e
commit 62e331c98c

View File

@ -66,6 +66,11 @@ impl InitExpr {
pub fn code(&self) -> &[Opcode] {
&self.0
}
/// List of opcodes used in the expression.
pub fn code_mut(&mut self) -> &mut Vec<Opcode> {
&mut self.0
}
}
// todo: check if kind of opcode sequence is valid as an expression