Impl dbgprint bytecode
This commit is contained in:
parent
5eae0712bf
commit
02f258415d
@ -31,6 +31,8 @@ pub enum OP {
|
||||
Value(u32),
|
||||
|
||||
Print,
|
||||
|
||||
DbgPrint,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
@ -94,7 +96,10 @@ impl Compiler {
|
||||
self.overwrite_i64(idx_else, self.ops.len() as i64);
|
||||
|
||||
},
|
||||
Stmt::DbgPrint(_) => todo!(),
|
||||
Stmt::DbgPrint(expr) => {
|
||||
self.compile_expr(expr);
|
||||
self.ops.push(OP::DbgPrint);
|
||||
}
|
||||
Stmt::Print(expr) => {
|
||||
self.compile_expr(expr);
|
||||
self.ops.push(OP::Print);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user