Hackernoon logoHow to Build a Parser in Rust for Fun and Profit by@pancy

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.
image
Pancy Chasinga Hacker Noon profile picture

Pancy Chasinga

Developer advocate. Ocaml and Rust fanatics. Human first, then computer.

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.