ibara/pl0c
Self-hosting PL/0 to C compiler to teach basic compiler construction from a practical, hands-on perspective.
Implements a self-hosting bootstrap compiler—written in C but capable of compiling itself from PL/0 source. Translates PL/0 programs to portable C code, with minimal dependencies and platform-specific fallbacks for `strtonum(3)`. Accompanied by detailed blog post tutorials breaking down each compiler stage, making it suitable for studying lexical analysis, parsing, and code generation fundamentals.
154 stars. No commits in the last 6 months.
Stars
154
Forks
15
Language
C
License
ISC
Category
Last pushed
Sep 23, 2021
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/ibara/pl0c"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
javaparser/javaparser
Java 1-25 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
asmjit/asmjit
Low-latency machine code generation
lioncash/biscuit
A runtime code generator for RISC-V
llvm-hs/llvm-hs-pretty
Pretty printer for LLVM AST to Textual IR
bytexenon/Tiny-Lua-Compiler
⛄Possibly the smallest Lua compiler ever