How to Build a Parser in Rust for Fun and Profit
Parse Expression Grammer (PEG) is an easy way to wrap your head around parsers and save your valuable weekend. PEG is a readable way to write syntax rules and is quite similar to regular expressions. It is different from a Context-free Grammar counterpart such as Backus-Naur Form (BNF) in which expressions must be reduced to smaller symbols. We will use a Rust PEG parsing library called Pest, which is pretty awesome. Pest is an Ocaml and Rust fanatics.
Developer advocate. Ocaml and Rust fanatics. Human first, then computer.
Join Hacker Noon
Create your free account to unlock your custom reading experience.