Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Mouse, sample interpreter

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

Name: Anonymous 2007-08-05 4:16 ID:Pqz9+/da

Looks quite cool, I'll have to take a deeper look at it sometime.

Name: Anonymous 2011-03-31 12:08

I am the phantom autist

Name: Anonymous 2011-03-31 12:08

I am the phantom autist

Name: Anonymous 2011-03-31 12:08

I am the phantom autist

Name: Anonymous 2011-03-31 12:08

I am the phantom autist

Name: Anonymous 2011-03-31 12:08

I am the phantom autist

Name: Anonymous 2011-03-31 12:08

I am the phantom autist

Don't change these.
Name: Email:
Entire Thread Thread List