commenting main.rs

This commit is contained in:
coolcoder613eb 2024-03-21 17:55:36 +11:00
parent 54bb8a9783
commit e92fbb020e
1 changed files with 3 additions and 0 deletions

View File

@ -14,9 +14,12 @@ fn main() {
match arguments.next() {
Some(filename) => {
println!("Filename: {}", filename);
// create an assembler
let mut asmb = Assembler::new();
// assemble the file
asmb.assemble(read_to_string(filename).expect("Failed to read file!"));
println!("{:#?}", asmb);
// emit the bytecode
let code = asmb.emit();
println!("{:#?}", code);
}