3 ms·
There's also nom (https://github.com/Geal/nom https://github.com/Geal/nom) which is similar to Parsec and more designed for parsing text formats but used for bi
by ungzd 10y ago
There's also nom (https://github.com/Geal/nom https://github.com/Geal/nom) which is similar to Parsec and more designed for parsing text formats but used for binary formats too.
- zsiciarz 10y agoIt's coming to 24 days of Rust as well :-)
- steveklabnik 10y agoSerde is short for "serialize/deserialize", nom is about parsing. Similar, but slightly different things.
- erickt 10y agoSerde creator here. Steve's right, serde is fundamentally a generic protocol that implements serialization. I didn't use nom for serde_json (because it didn't exist at the time) but it's definitely possible to use nom and other parser generators to implement the serde protocol.