3 ms·
As a someone who has never design the language or implemented a compiler, this seems to be on very very daunting task. Just wondering how much effort it require
by n13 8y ago
As a someone who has never design the language or implemented a compiler, this seems to be on very very daunting task. Just wondering how much effort it requires and if someone like me - who has experience in developing software using high-level languages but not compilers - can implement it. It seems to be very interesting project and I would love to try something like this just for the sake of learning. I would really appreciate if someone can give me the pointers about where to begin with.
- mathgladiator 8y agoIt is daunting, but getting started is actually straight forward. For instance, you could start by simply writing a domain language that translates your grammar via a tool like ANTLR or simply raw abstract syntax trees to C++. It gets hard the more features you add to have a consistent experience and all the other tooling a language has (like debugging). I find these problems fun and help in making you a better programmer, but the cost to be successful is immense.
- omegabravo 8y agohttp://craftinginterpreters.com/ http://craftinginterpreters.com/ It's an excellent book and is incredibly approachable.