A bestiary of single-file implementations of programming languages
my k interpreter[0] is less than 1000 lines of JS. Big compared to many on this list, but still human-scale. Looking back on it I see many opportunities left to simplify.further back, I wrote a compiler for part of the language described in Dijkstra's A Discipline of Programming in a dialect of forth[1].one of my colleagues, Stevan Apter, has a number of interesting toy interpreters on his site[2], particularly concatenative languages.[0] https://github.com/JohnEarnest/ok/blob/gh-pages/oK.js[1] https://github.com/JohnEarnest/Mako/blob/master/demos/FiDo.f...[2] http://nsl.com