3 ms·
So the Rust compiler can be the basis of a compiler provided the language is exactly like Rust and if complex changes for the benefit of reusing compiler intern
by HelloNurse 6y ago
So the Rust compiler can be the basis of a compiler provided the language is exactly like Rust and if complex changes for the benefit of reusing compiler internals are implemented. Not exactly a value proposition.
> A lot of ideas we take for granted in our programming languages like loops, closures, and enums (sum types), have to be re-implemented every time a new language compiles to LLVM
If you don't want to implement the low-level building blocks of your programming language, why don't you just generate Rust code instead of attempting to write a compiler?