Home

Awesome

Let's Build a Compiler (in Swift)

WARNING: Work in progress!

This repository is an attempt to work through Let's Build a Compiler, by Jack Crenshaw, in the Swift programing language.

If you're not familiar with that series, you should check it out; it is excellent. Written in the late 80's, Crenshaw walks the reader through the implementation of a recursive descent compiler. The approach is completely pragmatic, eschewing theory for a learn-by-doing approach.

Notes

Milestones

I'm actively working through the series part by part. As I complete sections, I'll link to milestone commits/branches in case you want to follow along.

Future

In the short term, I plan to work through the full series. In the medium term, I hope to better organize the repo to include clean, completed code for each section on the master branch, so this can be a useful reference for future learners who also want to work through this series in Swift. In the longer term, I'd like to refactor the final product into a more modern design and possibly even update the tutorial itself to essentially build an updated version of Crenshaw's series. We'll see how far I'm able to get.