- Notifications
You must be signed in to change notification settings - Fork15
Self-hosting PL/0 to C compiler to teach basic compiler construction from a practical, hands-on perspective.
License
ibara/pl0c
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
pl0c
is a compiler for thePL/0language. It reads in PL/0 source code and outputsequivalent C source code.
It was written to be the subject of a series ofblog postson writing a compiler from a hands-on practical perspectivefor the beginner.
Just runmake
. Then (optionally)make install
.
If you are on a platform that does not includestrtonum(3)
in its libc, remove-DHAVE_STRTONUM
fromCFLAGS
.In this case, you'll have to putstrtonum.c
in thesame directory aspl0c
. This will be improved.
The current version is1.0.2
.
You can find a source tarball in the Releases tab.
Issues and Pull Requests are accepted at any time.
If your Pull Request changes the compiler in any way, I askthat you remember to update the bootstrap compiler usingmake genbootstrap
and including the updated bootstrapcompiler as part of the Pull Request.
About
Self-hosting PL/0 to C compiler to teach basic compiler construction from a practical, hands-on perspective.