This is the LLVM-backed compiler from part 3 of the Building a Compiler in Swift with LLVM series.
Important Installation Instructions:
Apologies, but Part 4 of the project currently only works on macOS due to some build behavior we need to fix for LLVMSwift.
You must follow the instructions specificed in the README for LLVMSwift to be able to compile this project.
Once that's done, just open this folder and run
and you should have a binary at
On macOS, you can also run
swift package generate-xcodeproj
to create an Xcode project for this repo.
Harlan Haskins (@harlanhskins)
This project is released under the MIT license, a copy of which is attached to this repo.