Skip to content

A Swift implementation of the COOL (Classroom Object-Oriented Language) compiler, originally developed for Stanford's CS143 compiler course.

License

Notifications You must be signed in to change notification settings

SwiftyJoeyy/cool-swift

Repository files navigation

COOL Swift

A Swift implementation of the COOL (Classroom Object-Oriented Language) compiler, originally developed for Stanford's CS143 compiler course.

Overview

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.

Requirements

  • Swift 6.2+
  • macOS 14.0+

Development

The project uses modern Swift features including:

  • Typed throws for error handling
  • Parameter packs for variadic generics
  • Swift Testing framework

Reference

See cool-manual.pdf for the complete COOL language specification.

License

Apache-2.0 license - see LICENSE file for details

About

A Swift implementation of the COOL (Classroom Object-Oriented Language) compiler, originally developed for Stanford's CS143 compiler course.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published