From b886e5d26df7bdc778feb025aced54385dc79a9a Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Tue, 10 Oct 2023 16:08:09 +0200 Subject: [PATCH] Add support for parsing real values (to a String) --- src/vcd/parse/events.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vcd/parse/events.rs b/src/vcd/parse/events.rs index 32c8f7a..4cdd947 100644 --- a/src/vcd/parse/events.rs +++ b/src/vcd/parse/events.rs @@ -492,7 +492,8 @@ pub(super) fn parse_events( } }?; } - "s" => { + // Store real values as a string as well and let the user parse it to an f64 + "s" | " S" | "r" | "R" => { let val = word[1..].to_string(); let (hash, cursor) = next_word!(word_reader)?; // lokup signal idx