r/Compilers • u/ApprehensivePipe1584 • Sep 21 '26
C^4 Programming Language
I've been making a programming language, C^4 for almost a year. It's got generics, concepts, OOP, inheritance and polymorphism, error handling, and is able to build projects. It has some docs and a README, and a book is in the works. Wondering if anybody could check it out?
4
Upvotes
View all comments
Show parent comment
1
u/ApprehensivePipe1584 Sep 22 '26
Well, yes. Not that it's falling apart, because the compiler depends on the Tokens and Nodes from the lexer and parser because it needs to, the compiler turns the nodes which depend on the tokens on to generate code, the parser depends on nodes and tokens becuase... thats literally what it does. it turns tokens into nodes, and the lexer depends on tokens because it just turns text into tokens, Seperation i don't find would help the project. It develops quite fast once you just learn the node classes, the length doesn;t hurt it.