llvm is pain
it compiles but it doesnt work
i might just pivot and make it interpretted only, maybe have it transpile to scheme instead.
llvm is pain
it compiles but it doesnt work
i might just pivot and make it interpretted only, maybe have it transpile to scheme instead.
I got started on making the compiler convert my language to LLVM IR code, and it genuinely sucks. I basically need to make my language un-functional itself into a primitive language, and I need to deal with the limits of my own language, golang, and C at the same time and it’s torture. I’m powering through though and I’m almost at a point where it’ll actually manage to compile my language.
This is now technically a usable programming language! It can interpret code, and I even made a Fibonacci program. I spent most of the day making some basic primitives, alongside starting the standard library with things like true, false, or, and, not, nil, print, addition, multiplication, subtraction, division and more! Tomorrow I’ll set it up with LLVM and try my best to get it to actually compile. Wish me luck!
Also, if any of you have ideas for how I can make the code less ugly, I would appreciate some advice.
I pretty much finished the AST and I’m basically ready to start working on the interpretter.
I finalized the lexer and I’m almost done with generating the AST, so nearly done with the boring bit! I also made some very basic test programs.