Merge branch 'master' into interpreter

This commit is contained in:
Svyatoslav Nikolsky
2017-05-10 13:09:37 +03:00
14 changed files with 282 additions and 15 deletions

View File

@ -67,6 +67,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