A compiler for the Kaleidoscope sample project, written in Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Part3
Part4
.gitignore
LICENSE
README.md

README.md

Kaleidoscope-Swift

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

swift build

and you should have a binary at .build/Debug/Kaleidoscope.

On macOS, you can also run

swift package generate-xcodeproj

to create an Xcode project for this repo.

Author

Harlan Haskins (@harlanhskins)

License

This project is released under the MIT license, a copy of which is attached to this repo.