1
Zig, parser combinators, and why they're awesome
In this article we will be exploring what parser combinators are, what runtime parser generation is - why they're useful, and then walking through a Zig implementation of them.
Hexops developer log. Join as we develop Mach engine in the Zig programming language and create the next generation of games.
Visit devlog.hexops.com → RSS feedOn Hacker News Mar 2021 – Feb 2024
Software Engineering 7Games & Graphics 3Systems & Performance 2Programming Languages 2
In this article we will be exploring what parser combinators are, what runtime parser generation is - why they're useful, and then walking through a Zig implementation of them.
As we've been building Mach engine, we've been using a neat little pattern in Zig that enables writing flag sets more nicely in Zig than in other languages. Here's a brief explainer.