|Michael Hope d60fb90b53 build: fix a type error. peek() returning !None means read() will return !None.||11 months ago|
|examples||3 years ago|
|lib||3 years ago|
|pl0||11 months ago|
|tests||3 years ago|
|CONTRIBUTING.md||3 years ago|
|GRAMMER.md||3 years ago|
|LICENSE||3 years ago|
|Makefile||2 years ago|
|NOTES.md||3 years ago|
|README.md||3 years ago|
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.