bendc

A self-hosting compiler for Bend 2 written in Bend 2. It type-checks and translates Bend programs into C, with an additional JavaScript output path and a runtime supporting effects and parallel execution.
The repository includes a bootstrap process that compiles the compiler with itself and compares subsequent C outputs for a fixed point. Compiler and type-checker sources are written in Bend, with a C runtime alongside them. A substantial language-implementation project with documented tests, supported features, and limitations.
The sources
Explore the original posts and links behind this build.
GitHubhttps://github.com/Lulzx/bendc/blob/main/README.md ↗GitHubhttps://github.com/Lulzx/bendc/blob/main/bendc.bend ↗