Skip to content

Commit 319db74

Browse files
committed
Revert "enable debug outputs"
This reverts commit 3d1c833.
1 parent 879fdac commit 319db74

File tree

1 file changed

+7
-6
lines changed
  • crates/lean_compiler/src

1 file changed

+7
-6
lines changed

crates/lean_compiler/src/lib.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ mod parser;
1414

1515
pub fn compile_program(program: String) -> Bytecode {
1616
let (parsed_program, function_locations) = parse_program(&program).unwrap();
17-
println!("Parsed program: {}", parsed_program.to_string());
17+
// println!("Parsed program: {}", parsed_program.to_string());
1818
let simple_program = simplify_program(parsed_program);
19-
println!("Simplified program: {}", simple_program);
19+
// println!("Simplified program: {}", simple_program);
2020
let intermediate_bytecode = compile_to_intermediate_bytecode(simple_program).unwrap();
21-
println!("Intermediate Bytecode:\n\n{}", intermediate_bytecode.to_string());
21+
// println!("Intermediate Bytecode:\n\n{}", intermediate_bytecode.to_string());
2222

2323
// println!("Function Locations: \n");
2424
// for (loc, name) in function_locations.iter() {
2525
// println!("{name}: {loc}");
2626
// }
27-
let compiled = compile_to_low_level_bytecode(intermediate_bytecode, program, function_locations).unwrap();
28-
println!("\n\nCompiled Program:\n\n{compiled}");
29-
compiled
27+
/* let compiled = */
28+
compile_to_low_level_bytecode(intermediate_bytecode, program, function_locations).unwrap() // ;
29+
// println!("\n\nCompiled Program:\n\n{compiled}");
30+
// compiled
3031
}
3132

3233
pub fn compile_and_run(

0 commit comments

Comments
 (0)