lstc
- 9 Devlogs
- 64 Total hours
A compiled programming language (Work In Progress)
A compiled programming language (Work In Progress)
finished lexer YAY!!! so, lexer is done, one out of several parts of the compiler… used example for parsing:
fn XD() -> none { return; }
lexer works as intended, which is good,
now I will have to write a parser for the lexer output, btw, I will not use AST, in my plans is to use 4 stages of IR to provide faster compiler speed (also, way less memory hungry because AST nodes are big, linear IR is slim), and, I will not use LLVM cuz of lack of control and always changing API
BRUH, I’m stuck on lexer, fking lexer, I have to do it, but somewhy I can’t, I need to finish it, I NEED TO FINISH IT, FINISH IT, also switched to nvim XD
fuck fuck fuck, I tried writing a lexer, this… piece of -code- doesn’t wanna work, gotta rewrite it (yes, I barely ever publish devblogs, this is why its near 10 hours)
working on primitives, changed plans (now I won’t try to make the compiler super good from the start, just a carry to bootstrap) and so on
still stuck on asm, but finished more shit (I achieved independence from libc, still better than C++) overall cool, but should finish and pack up with the library and start lexer
went a bit crazy with primitives and asm (still working on them, but they’re starting to get shape, most still just stubs)
Tried to fix a bug, couldn’t, fuck C++, gonna try and rewrite everything in C (P.S. C++ is a pile of shitty compromises)
Added path expansion
starting project architecture and execution