Writing the world's worst parser generator
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
A live coding session building a rudimentary parser generator in Zig from scratch. The author is motivated by the tedium of hand-rolling parsers for an HTTP-like SIP protocol (specifically parsing 'Via' headers defined in ABNF/BNF). The approach: define a simple intermediate representation of BNF rules, then generate Zig source
•1h 56m watch time
Sort: