3 ms·
What a great article. It's something I need to read, as I have been working on my own programming language for a while now. This creating-programming-language-t
by tanin 6y ago
What a great article. It's something I need to read, as I have been working on my own programming language for a while now. This creating-programming-language-thing is so difficult and so much effort. (I'm stuck at designing how string works right now)
+1 on writing parser by hand. I've done it once with java (https://github.com/tanin47/javaparser.rs https://github.com/tanin47/javaparser.rs), and I switched my own programming language from a parser generator to a hand-written one. Once you know how to write a parser by hand, it's a much better approach (e.g. easier to test, modularizable).
My programming language is a bit strange in a way that I drop the performance requirement. Performance distorts other aspects. I focus on making the language featureful and beautiful instead. I hope I'll achieve this dream of making a usable programming language one day.