Skip to content

Commit

Permalink
fix(compiler):delete debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Apr 5, 2024
1 parent 7980f02 commit 0e354b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions libcore/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ pub enum Opcode {
PopDataStr,
PopDataChar,
PopDataBool,
ImportNativeModule,
}

impl Display for Opcode {
Expand Down
8 changes: 4 additions & 4 deletions src/compiler/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions src/tvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ impl<'a> Vm<'a> {
return Ok(());
}
}
Opcode::ImportNativeModule => todo!(),
};
*pc += 1;
Ok(())
Expand Down

0 comments on commit 0e354b5

Please sign in to comment.