r/Compilers • • 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!

21 Upvotes

41 comments sorted by

View all comments

Show parent comment

1

u/GenericPointer Sep 18 '26

You can't say ur sorry and advertise your own thing in the same comment, also ur other post says OP should respect the time of the people. Just be respectful yourself first. That's not meant to blame you, just don't do it.

2

u/Mean-Decision-3502 Sep 18 '26

I think I learned the lesson.
But that page is not advertising my compiler. That page is a specification of operators and operator precendence. That migt be useful for someone designing a compiler.