You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 years ago | |
---|---|---|
examples | 7 years ago | |
lib | 7 years ago | |
pl0 | 4 years ago | |
tests | 7 years ago | |
CONTRIBUTING.md | 7 years ago | |
GRAMMER.md | 7 years ago | |
LICENSE | 7 years ago | |
Makefile | 6 years ago | |
NOTES.md | 7 years ago | |
README.md | 7 years ago |
README.md
PL/0 implementation
A toy compiler for the PL/0 educational language.
Motivation
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.
Usage
python3 -m pl0.driver [-o output.c] [source.pl0]
See Makefile
for further rules and examples/ for examples.
-- Michael Hope mlhx@google.com michaelh@juju.net.nz