#parser #vmf #hammer #file-format

vmfparser

Parser for the Valve Map File format

1 unstable release

Uses old Rust 2015

0.1.0 Aug 24, 2017

#5 in #hammer

MIT license

7KB
156 lines

vmfparser-rs

Another parser for the VMF format, this time in Rust.

VMF is not a very complex format, so most of the API should be self-explanatory. Perhaps the most interesting feature is the ability to "brin your own key": the parser is agnostic over what type is used for the keys (block and property names), as long as it implements From<&str>. This means you can use a good old String, or a string_cache::Atom using a static table pre-filled with some VMF-related keywords.

Dependencies

~120KB