diff --git a/src/ast.rs b/src/ast.rs index 9806094..26f2648 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -889,7 +889,6 @@ impl Parse for TableConstructorEntry { (stream.peek(), stream.peek2()) { let key = stream.parse::>()?; - dbg!(&key); let key = key.with(Expression::Literal(Literal::String(key.kind.clone()))); if let Some(Token::Symbol('=')) = stream.peek() { stream.next(); diff --git a/src/compile.rs b/src/compile.rs index 8ec1ccf..a3c0f59 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -523,8 +523,6 @@ impl Statement { expr_regs.extend(regs); } - dbg!(&expr_regs); - let mut inner_scope = scope.clone(); let iterator_reg = *expr_regs.get(0).unwrap(); @@ -987,15 +985,11 @@ impl Expression { scope.highest_upvalue + scope.register_counter.0 as i32; inner_scope.upvalues = scope.upvalues.clone(); - dbg!(&scope.highest_upvalue, &scope.register_counter.0); - for (name, reg) in &scope.locals { let upvalue_reg = *reg + (scope.highest_upvalue + 1) as u16; inner_scope.upvalues.insert(name.clone(), upvalue_reg); } - dbg!(&inner_scope.upvalues); - let instructions = block.compile(state, &mut inner_scope); state.prototypes.push(Prototype { instructions: process_pre_instrs(instructions), diff --git a/src/lib.rs b/src/lib.rs index e90b83a..3631d52 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -110,8 +110,6 @@ pub fn compile( let chunk = stream.parse::()?; stream.expect(Token::Eof)?; - dbg!(&chunk); - let constants = chunk .find_constants( &mut Default::default(),