💾 Archived View for aosync.me › research › x.gmi captured on 2021-11-30 at 20:18:30. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
[X] is a simple C-like programming language I have been meaning to design and implement for a few months.
The reason I want to do it is to learn about compilers design. The current implementation is far from finished, but it's the first time an attempt goes that far, so I am pretty proud of me :)
The repository is on my local machine, it is not public yet. If it ever goes into a ready state, I'll publish it, alongside documentation.
It must look and feel like C, except I want to add a few features that I like and change details that I don't like. For example, the IR generator should scan for function signatures in the current source file, so as to not have a distinction between definition and declaration of functions. Also I want a more modern module system; maybe something like Limbo(?), I am not sure, I will see.
Anyways, first I'll be glad to get it to generate asm for basic functions. I am not that far, but I want to work for uni in priority, so development goes in spikes.
import sys; int main() { int i = 0; i = sys.Write(1, "Hai!", 4); return i; }