saving progress so far

This commit is contained in:
Yehowshua Immanuel 2022-07-25 21:16:15 -04:00
parent 3658833af3
commit 18a69872ab
8 changed files with 379 additions and 59 deletions

View file

@ -315,10 +315,10 @@ pub(super) fn parse_metadata(word_reader : &mut WordReader) -> Result<Metadata,
metadata.timescale = timescale.unwrap();
}
}
// in VCDs, the scope keyword indicates the end of the metadata section
"scope" => {break}
"var" => {break}
// we keep searching for words until we've found one of the following
// keywords, ["version", "timescale", "scope"]
// keywords, ["version", "timescale", "scope", "var"]
_ => {}
}
}

View file

@ -52,6 +52,7 @@ pub(super) fn parse_var<'a>(
// ^ - signal_alias
let (word, cursor) = word_reader.next_word().ok_or(&err)?;
let signal_alias = word.to_string();
// dbg!(&signal_alias);
// $var parameter 3 a IDLE $end
// ^^^^ - full_signal_name(can extend until $end)