Erlang Blog Post: Leex and yecc by example: part 1

Starting a series on lexing and LALR-1 parser generators using leex and yecc. The series is really focused on the “by example” part since it took me a long time to get started with these tools.

The first example is lexing and parsing advent of code 2024 day 3. Hope you enjoy!

13 Likes

Sounds amazing! :tada: Focusing on “by example” is a fantastic way to make lexing and LALR-1 parsing approachable. Using Advent of Code Day 3 as a practical case is a brilliant idea - looking forward to learning from your insights! :rocket::computer:

3 Likes

Part 2 is now available Leex and yecc by example: part 2 | Chiroptical’s Blog

I discuss the lexer and parser for advent of code day 4 and a simplification I was able to do to day 3.

3 Likes

@chiroptical Amazing blog.

1 Like