Python Forum

Full Version: ChocoPy - A Subset of Python3 used for teaching compiler courses
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
https://chocopy.org/

Quote:ChocoPy is a programming language designed for classroom use in undergraduate compilers courses. ChocoPy is a restricted subset of Python 3, which can easily be compiled to a target such as RISC-V. The language is fully specified using formal grammar, typing rules, and operational semantics. ChocoPy is used to teach CS 164 at UC Berkeley. ChocoPy has been designed by Rohan Padhye and Koushik Sen, with substantial contributions from Paul Hilfinger.

The site features a compiler, showing the RISC-V assembly that's generated. Interesting stuff.