3 ms·
I remember playing with the JS "Cat" interpreter[0] in college to get my feet wet. but for myself, the fun is in writing a toy concatenative language. The pars
by chipsy 12y ago
I remember playing with the JS "Cat" interpreter[0] in college to get my feet wet.
but for myself, the fun is in writing a toy concatenative language. The parsing difficulty borders on non-existent, making it easy to skip to thinking about semantics. once you actually try to implement programs within concatenative syntax, you will surely run into its main pitfalls: there are too many valid programs that produce wrong results, and there are whole new classes of errors introduced through having to maintain stack state yourself. writing code in this style can develop into a complex puzzle very quickly, although it's beautiful when it does work.
[0] http://www.cat-language.com/interpreter.html http://www.cat-language.com/interpreter.html