r/Compilers • u/axlrosefan31 • May 13 '26
Code layout, Compiler inspiration
I've been developing my own compiler in C++ (LLVM based) for a month and the codebase turned into a mess. 500+ loc files, big functions and other garbage. I'm trying to find hobby compilers for inspiration. I've checked github but they're mostly very simple toy languages.
Here's my own compiler: https://github.com/budchirp/zep-lang
The syntax is very much inspired by rust, kotlin, swift and C++.
I like C++ but I hate its stdlib, headers and module management. The inspiration behind the language was making a better C++.
Can y'all roast my compiler and send your own compilers?
View all comments
Show parent comment
1
u/JeffD000 May 14 '26
I agree the compiler is slightly on the large side, but so are compilers written by folks with an eye towards long term maintenance. It meets all the requirements you just laid out, so it sounds like a success to me.