From 0e354b5c68ede36a7bbcd2f65356d5cefdd23e5a Mon Sep 17 00:00:00 2001 From: limuy Date: Sat, 6 Apr 2024 01:05:02 +0800 Subject: [PATCH] fix(compiler):delete debug info --- libcore/src/codegen.rs | 1 + src/compiler/ast.rs | 8 ++++---- src/tvm.rs | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libcore/src/codegen.rs b/libcore/src/codegen.rs index 1763b9ba..554735f7 100644 --- a/libcore/src/codegen.rs +++ b/libcore/src/codegen.rs @@ -149,6 +149,7 @@ pub enum Opcode { PopDataStr, PopDataChar, PopDataBool, + ImportNativeModule, } impl Display for Opcode { diff --git a/src/compiler/ast.rs b/src/compiler/ast.rs index 95bbb99e..a0a8caf1 100644 --- a/src/compiler/ast.rs +++ b/src/compiler/ast.rs @@ -148,10 +148,10 @@ impl<'a> AstBuilder<'a> { .borrow() .get_type_id_by_token(val_pool_ref.name_pool[BOOL]) .unwrap(); - println!( - "{} {} {} {} {}", - cache.intty_id, cache.floatty_id, cache.charty_id, cache.strty_id, cache.boolty_id - ); + // println!( + // "{} {} {} {} {}", + // cache.intty_id, cache.floatty_id, cache.charty_id, cache.strty_id, cache.boolty_id + // ); AstBuilder { token_lexer, staticdata: StaticData::new(), diff --git a/src/tvm.rs b/src/tvm.rs index eac028f7..8522c0c3 100644 --- a/src/tvm.rs +++ b/src/tvm.rs @@ -645,6 +645,7 @@ impl<'a> Vm<'a> { return Ok(()); } } + Opcode::ImportNativeModule => todo!(), }; *pc += 1; Ok(())