So I am planning to create a programming language in c++, I need some good suggestion on the following topics
- How good you should be in c++
- How to create a good lexer
- How to make it fast and powerful
Suggestions of any books for these topics would help
Top comments (4)
Hey @niketjohn i understand your passion but before jumping into required tech skills. We have to come up with the question Why ?. Why we are building ?. Have you feel the existing languages are not useful for your use cases ? or for learning purpose ?
If it is for your learning purpose have a look on some concepts and topics like
compiler design, infix, posix, token parsing and lexical analysis etc..
. Also have a look on tools likelex
.Hi, @sakethkowtha I want to create a programming language because python and rust python is easy but slow and rust is super fast but a bit hard so I want to create the takes the good things of those programming language and avoid the bad things, I will be first creating one to learn more about it then I will proceed with Chytrids.
There are lot of things you need to think buddy. Till 90's programming language is used for multiple purposes example C++, Java used in desktop apps, enterprise apps, web servers, OS development and for Data base connects. But now the scenario is different mostly Java is using for REST API's and android, Javascript for web dev, Obj-c / Swift for IOS development, Python for ML and data-science, R for data analysis etc... coming to your statement Rust usage purpose is different and python purpose is different. I am not discouraging you but saying that choose problem area like
web / os / network / app dev / ML/ game dev
build in that area for that problem.Have you considered just contributing to a relatively new language that shares your goals? You'd get more bang for your effort and probably learn a lot from others.
In order of popularity you could look at Julia, Nim, and Vale.