4 ms·
Another language that's more modern and currently useful but which is very tiny to write an interpreter for is Lua [0][1]. Currently the official Lua interprete
by doodlesdev 4y ago
Another language that's more modern and currently useful but which is very tiny to write an interpreter for is Lua [0][1]. Currently the official Lua interpreter has around 30k LOC which I find pretty amusing for a language used so widely in games and for scripting purposes [2]. Of course it's still at least an order of magnitude larger than a small Tiny BASIC interpreter but the fact it's a current language used in so many places makes it even more interesting to make your for-fun implementation.
Also related to small language implementations I find notable PicoC [3] which is a C interpreter written in around 3k LOC of C. Past discussion about it here 13 years ago [4].
[0]: https://www.lua.org/about.html https://www.lua.org/about.html
[1]: https://www.lua.org/spe.html https://www.lua.org/spe.html
[2]: https://en.wikipedia.org/wiki/Lua_(programming_language) https://en.wikipedia.org/wiki/Lua_(programming_language)
[3]: https://gitlab.com/zsaleeba/picoc https://gitlab.com/zsaleeba/picoc
[4]: https://news.ycombinator.com/item?id=1658890 https://news.ycombinator.com/item?id=1658890