Skip to content

Commit

Permalink
wip: new body parser implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Nov 1, 2024
1 parent cbd3d75 commit 7d74d10
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions wellen/src/vcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,19 @@ fn advance_to_first_newline(input: &[u8]) -> (&[u8], usize) {
(&[], 0) // no whitespaces found
}


fn read_body_command<'a>(input: &mut impl BufRead, buf: &'a mut Vec<u8>, line_count: ) -> Result<BodyCmd<'a>> {
// start out with an empty buffer
assert!(buf.is_empty());

// skip over any preceding whitespace
let start_char = skip_whitespace(input)?;


}



struct BodyReader<'a, R: BufRead> {
input: &'a mut R,
// state
Expand Down

0 comments on commit 7d74d10

Please sign in to comment.