5 Cool Coding Challenges from Beginner to Advanced
⟡ prev Contents next ⟢

πŸ†• This chapter is part of the WIP book:
5 Cool Coding Challenges from Beginner to Advanced

Subscribe to get notified of new chapters and the book's release.
πŸ”₯ My other Book: Build Your Own Redis

Project P: The Pretty Laughable Compiler

Create your own programming language in a weekend!

We start with simple things. The first chapter is a program that can parse and evaluate an expression, and that’s less than 100 LoC.

Then we build something that resembles a programming language β€” it has common language constructs like variables, control flows, and functions β€” an interpreter in about 200 LoC.

If you are still bored, take the challenge of building a compiler and enjoy running your program natively on your machine.

The final compiler is on GitHub so you can play with it.

⟡ prev Contents next ⟢