GitHub - robertmuth/Cwerg: The best C-like language that can be implemented in 10kLOC.
Cwerg
The best C-like language that can be implemented in 10kLOC
Cwerg aims to be a complete "from-scratch" compiler for a C-like language.
The frontend is WIP. The multi-target backend
is fairly far along and can be used independently from the frontend.
Documentation:
Frontend Docs (misc. documentation)
Cwerg Examples (example Cwerg code)
Backend Docs (misc. documentation)
Cwerg IR Examples (examples demonstrating backend API usage)
Most components are implemented twice (see rationale):
spec/re...
Read more at github.com