A Swift implementation of the COOL (Classroom Object-Oriented Language) compiler, originally developed for Stanford's CS143 compiler course.
COOL (Classroom Object-Oriented Language) is a small language designed for teaching compiler construction. This project implements a COOL compiler in Swift, featuring a modular architecture with separate packages for the compiler phases.
- Swift 6.2+
- macOS 14.0+
The project uses modern Swift features including:
- Typed throws for error handling
- Parameter packs for variadic generics
- Swift Testing framework
See cool-manual.pdf for the complete COOL language specification.
Apache-2.0 license - see LICENSE file for details