Anders429 / simfile

Apache License 2.0
0 stars 0 forks source link

Parsing of `msd`-style tags #33

Closed Anders429 closed 3 years ago

Anders429 commented 3 years ago

Implements msd-style simfile format parsing, which fixes #16.

This parsing should be able to be shared among msd, dwi, sm, and ssc file formats, with the returned ParameterList values being interpretted according to each format's individual requirements.

This parser will never fail. It is up to the interpreters to fail on errors. There is technically no specified way for msd tag parsing to fail.

codecov-commenter commented 3 years ago

Codecov Report

Merging #33 (d5c736f) into master (25341bb) will increase coverage by 98.75%. The diff coverage is 98.75%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #33       +/-   ##
===========================================
+ Coverage        0   98.75%   +98.75%     
===========================================
  Files           0        1        +1     
  Lines           0      160      +160     
===========================================
+ Hits            0      158      +158     
- Misses          0        2        +2     
Impacted Files Coverage Δ
src/parse/msd.rs 98.75% <98.75%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 25341bb...d5c736f. Read the comment docs.

Anders429 commented 3 years ago

Note that the #[allow(dead_code)] is only temporarily required here until the parsing function is actually used. It should be removed at that point.