3 ms·
Great article. I’ve always wanted to try and build a toy language for the fun of it, great to see something that breaks it down so well. Curious if anyone has
by mr_00ff00 3y ago
Great article. I’ve always wanted to try and build a toy language for the fun of it, great to see something that breaks it down so well.
Curious if anyone has any additional thoughts to add onto this for anyone who wants to build one themselves?
I have experience in C++, so will likely use that or rust (I imagine rust’s built-in methods might make it way easier at least for the parser, although idk if ownership rules get painful for work like this).
- benhoyt 3y agoYes, my thought is to read Bob Nystrom's "Crafting Interpreters". It's excellent, in-depth but not academic, and the writing style is great. https://craftinginterpreters.com/ https://craftinginterpreters.com/" He also has a lot of good thoughts about language design.