Miscellaneous build-your-own-X projects
build-your-own.org
⟡ prev Contents next ⟢

πŸ†• This chapter is part of the WIP book:
Miscellaneous build-your-own-X projects

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.
https://github.com/byo-books/pretty_laughable_lang

( Report an Error | Ask a Question) @ build-your-own.org


⟡ prev Contents next ⟢