Name: Alabama !OxEQ.F0AOw 2007-08-05 2:00 ID:yu5TWRzJ
Stumbled across this:
http://en.wikipedia.org/wiki/Mouse_(programming_language)
Mouse is yet another tiny stack-based language interpreter.
But the wikipedia page said it's "ideal for teaching the design of a simple interpreter."
4.7KB source compressed.
And it seems to have a small following, which is unusual for a tiny, old toy Forth. It must be the macro capability.
I found it while looking for a simple C interpreter for learning purposes. I keep finding the calculator example without loops and subroutines, and the toy compiler (not interpreter) commonly assigned in Universities.
Some notes in case you care about that:
-
Lex/yacc discussion at http://dinosaur.compilertools.net/
-
Dhaka is a Ruby parser generator with a test case, chittagong,
that is a toy interpreter. http://dhaka.rubyforge.org/chittagong.html
-
Textbook 'The Unix Programming Environment' by Kernighan and Pike develops an interpreter, HOC.
-
This promising discussion has dead code links:
http://code.google.com/p/cat-language/wiki/HowTheInterpreterWorks
http://en.wikipedia.org/wiki/Mouse_(programming_language)
Mouse is yet another tiny stack-based language interpreter.
But the wikipedia page said it's "ideal for teaching the design of a simple interpreter."
4.7KB source compressed.
And it seems to have a small following, which is unusual for a tiny, old toy Forth. It must be the macro capability.
I found it while looking for a simple C interpreter for learning purposes. I keep finding the calculator example without loops and subroutines, and the toy compiler (not interpreter) commonly assigned in Universities.
Some notes in case you care about that:
-
Lex/yacc discussion at http://dinosaur.compilertools.net/
-
Dhaka is a Ruby parser generator with a test case, chittagong,
that is a toy interpreter. http://dhaka.rubyforge.org/chittagong.html
-
Textbook 'The Unix Programming Environment' by Kernighan and Pike develops an interpreter, HOC.
-
This promising discussion has dead code links:
http://code.google.com/p/cat-language/wiki/HowTheInterpreterWorks