Merge pull request #29 from oscargus/realparsing

Add support for parsing real values (to a String)
This commit is contained in:
Frans Skarman 2023-10-10 14:15:50 +00:00 committed by GitHub
commit b9c507c9d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -492,7 +492,8 @@ pub(super) fn parse_events<R: std::io::Read>(
}
}?;
}
"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