Added arithmetic! see screenshot and commit message, but basically you can do print(1+2); or int result = 10*2+4;
Added arithmetic! see screenshot and commit message, but basically you can do print(1+2); or int result = 10*2+4;
made linked list class. thats lowk it he kept explaining things “i didnt understand” so it took a while since i wrote code more memory efficient than what he normally uses for stuff like this so he mdae me rewrite it slower and slower until he could comprehend it.
Added integer variables!!! (no arithmetic yet, thats next).
I added functions!
beforehand the only “function” was main, and all it did was start the program. this time tho, it has actual functions in semantic.h semantic.cpp and codegen.cpp, so you can run code from a function! again I do not know how i’m supposed to attach a screenshot of no code when im making a coding language, so this is just vscode from when it worked! (sorry for devlogs, ill make them better and mroe frequent soon)
GAWD DAMN I KEEP FORGETTING DEVLOGS (HCTG doenst have any). I added code gen, and i started variables.
A lexa and a parsa (idk what to provide for screenshot besides terminal, there is no interface yet lol)