Typed Python

An AST created by the compiler

A compiler for a typed subset of the Python 2.5 specification, developed with a group of 3 people in Spring 2018 for CS 164 (Programming Languages) at UC Berkeley. The compiler itself is written in C++, and compiles to C++ as well. The lexer and parser are written using Bison & FLEX.

Although the language features are somewhat limited (e.g. no augmented assignment, floating point literals, decorators, or lambda functions), there are some notable additions:

Additionally, full garbage collection is implemented, as in standard Python.