3 ms·
One of the simplest interpreters that also has a compiler built-in is Forth. It is somewhat heretical to conventional computer science but it can be fully unde
by lebuffon 6y ago
One of the simplest interpreters that also has a compiler built-in is Forth. It is somewhat heretical to conventional computer science but it can be fully understood top to bottom by normal humans due to it features or lack thereof. :)
A quick search found this repository of JonesForth which is a literate programming version of a Forth system that describes the code as it goes along. There appears to be source for various targets.
https://github.com/phf/forth https://github.com/phf/forth
It is a very interesting exercise that shows you a kind of bare minimum requirement way to make a language and provides insights for what is missing to build more conventional languages.