This post is inspired by the amazing Guido van Rossum series on PEG building and follows my idea of building simple version of B-Minor language.

I have already some experience in building simple recusrive descent parsers, so this is a good time to try to do something more complicated and PEG seems like a good choice. And as I am still in learning mode, I want to implement it in Zig, since I like a lot manual allocations and many other features of this language (but of course there are many things that makes me quite angry).

But this is just talk, lets dive in.