add html status table generation

This commit is contained in:
Henrik Böving
2020-11-29 14:19:41 +01:00
parent d6ab41683c
commit 057d70b57d
5 changed files with 201 additions and 8 deletions

View File

@@ -10,9 +10,12 @@ mod asm;
mod generate;
mod parse;
mod simulate;
mod html;
use generate::generate_binary;
use parse::{parse_asm, AsmParser};
use html::html_state_table;
fn main() {
let sub_cmd = env::args().nth(1);
@@ -41,7 +44,8 @@ fn main() {
else if sub_cmd == "simulate" {
if let Some(steps) = steps {
let states = simulate::simulate(instructions, steps.parse::<usize>().unwrap());
println!("{:#?}", states);
//println!("{:#?}", states);
println!("{}", html_state_table(states));
}
}
}