sane import and export behaviors

This commit is contained in:
Yehowshua Immanuel 2022-10-26 01:16:39 -04:00
parent d343b6f5ff
commit 9f18b166a5
12 changed files with 62 additions and 62 deletions

View file

@ -5,9 +5,7 @@
use clap::Parser;
use std::fs::File;
use fastwave_backend::*;
use num::{BigUint};
use fastwave_backend::parse_vcd;
#[derive(Parser)]
struct Cli {
@ -23,7 +21,7 @@ fn main() -> std::io::Result<()> {
let now = Instant::now();
let file = File::open(&args.path)?;
let vcd = parse_vcd(file).unwrap();
parse_vcd(file).unwrap();
let elapsed = now.elapsed();
println!("Parsed VCD file {} : {:.2?}", &args.path.as_os_str().to_str().unwrap(), elapsed);

View file

@ -4,7 +4,7 @@
// the root of the folder containing the sources for this program.
use std::fs::File;
use fastwave_backend::*;
use fastwave_backend::{ScopeIdx, VCD, parse_vcd};
fn indented_print(indent : u8, name : &String) {
for _ in 0..indent {print!(" |");}