14 points · by AGDNoob · 10mo ago · 26 comments
For example, your while-loops here
https://github.com/AGDNoob/axis-lang/blob/main/code_generato...
look like they might not be able to nest, since they assume the condition is always in eax and the loop doesn't push it down. So you'll need some kind of register allocation, which is a terrible pain in x86.
Also, I think it's worth coming up with an opinion about what other system programming languages are missing. And do the minimum work to provide that as a proof of concept, rather than trying to build a competitor to Zig right out of the gate. For example, maybe you have a perspective on a datastructure that should be a first class citizen, or maybe you've discovered the next best construct since async. Having that kind of vision might help focus the effort.
Actually Haskell has both indent-based and curlies-based syntax, and curlies freely replace indentation, and vice versa (but only as pairs).
# Parameter in Stack-Slots laden (für MVP: nur Register-Args)
# Semantic Analyzer markiert Params mit is_param=True
# Wir müssen jetzt die first 6 Args aus Registern laden
# TODO: Implementiere Parameter-Handling
# for now: Params bleiben in Registern (keine lokalen Vars mit gleichem Namen)
Also I love that I can understand all of this comment without actually understanding German.I assume also "5. No stdlib"? Will it be even able to print("Hello world") not by doing a direct write() syscall?