A toy compiler for the PL/0 educational language.
I’ve worked with compilers for a fair part of my life but have never written one from scratch. I decided on PL/0 after hearing about “Algorithms + Data Structures = Programs” by Niklaus Wirth who happens to work nearby at ETH.
python3 -m pl0.driver [-o output.c] [source.pl0]
Makefile for further rules and examples/ for examples.