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 like
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.
web / os / network / app dev / ML/ game devbuild 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.