4 releases (2 breaking)

0.3.0 Aug 29, 2021
0.2.1 Apr 6, 2021
0.2.0 Apr 5, 2021
0.1.0 Apr 5, 2021

#2075 in Parser implementations


Used in svfplayer

MIT license

120KB
1.5K SLoC

svf - Serial Vector Format file parser/emitter

LICENSE crates.io docs.rs CI Coverage

Parses SVF files into individual commands, and emits SVF format text from parsed or constructed commands.


lib.rs:

svf

Parse and generate SVF files.

Use parse_complete to parse a full SVF file into a vector of Command, parse_iter to create an iterator over Command which parses incrementally, or parse_iter_bufread to create an iterator using a BufRead input, allowing both the input and output to be processed piece-by-piece.

Once parsed, or if you construct Command manually, the Display trait implementation on Command can be used to generate SVF files.

Dependencies

~1.2–1.9MB
~38K SLoC