File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ mod parser;
1414
1515pub 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 = */
28- compile_to_low_level_bytecode ( intermediate_bytecode, program, function_locations) . unwrap ( ) // ;
29- // println!("\n\nCompiled Program:\n\n{compiled}");
30- // compiled
27+ let compiled =
28+ compile_to_low_level_bytecode ( intermediate_bytecode, program, function_locations) . unwrap ( ) ;
29+ println ! ( "\n \n Compiled Program:\n \n {compiled}" ) ;
30+ compiled
3131}
3232
3333pub fn compile_and_run (
You can’t perform that action at this time.
0 commit comments