Building a binary string parser in Rust with nom

Parsers are everywhere. Writing a program? You’re using a parser. Opening a PDF or an image? You’re using a parser. Using the internet? Parsers read the packets that go back and forth on the network. For something so ubiquitous, parsing is a little understood topic. What do parsers do? How do they work? Can I write one? This is a short post on how you can build a really simple binary string parser using nom....

April 8, 2023 · 4 min