feat(tazjin/rlox): Implement simple arithmetic operators
Change-Id: I9873bcd281053f4e9820a5119f5992a0b8cb8cfc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2417 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
7fb93fb490
commit
d6d3c12efb
4 changed files with 34 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ impl Chunk {
|
|||
|
||||
/// Print a single disassembled instruction at the specified offset.
|
||||
/// Some instructions are printed "raw", others have special handling.
|
||||
#[cfg(feature = "disassemble")]
|
||||
pub fn disassemble_instruction(chunk: &Chunk, offset: usize) {
|
||||
print!("{:04} ", offset);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue