commenting main.rs
This commit is contained in:
parent
54bb8a9783
commit
e92fbb020e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue