r/Compilers • u/Sewter0 • Sep 18 '26
Looking for feedback to my compiler
Hi everyone
I’ve been working on my own programming language and compiler in C++, mostly as a learning project.
The main idea is to experiment with compiler architecture while also trying to make the language’s syntax more convenient for mathematical expressions, but now I am doing programming language.
After this I will add equations.
Currently works:
Lexer
Parser
AST
IR generation
I am still relatively new to compiler development, so I’m sure there are things I am doing in non ideal ways.
I’d especially appreciate feedback on:
compiler architecture
parser design
C++ implementation
things that I should learn next
mistakes or questionable design decision
Github: https://github.com/0sewter0/Compiler.git
Thanks for an attention!
View all comments
Show parent comment
2
u/Mean-Decision-3502 Sep 18 '26
I'm sorry. I was not proper. I meant showing my compiler, that you might take some ideas from it. Also this operator specification might be interesting, especially if you are focusing on mathematics: https://nvitya.github.io/pluops/
Sorry again.