Implementing A Scripting Engine
flipcode.com
flipcode.com
Also, people might find this interesting: http://www.welton.it/articles/hecl_implementation
Hecl is very simple in some ways, so it's easy to see what's going on.
I remember several attempts to ship with an existing language (eg: Python, Java). A couple did succeed, but at a large cost.
It was however, pretty easy to sit down with a copy of Kernighan&Pike "The UNIX Programming Environment" and bang out a lightweight compiler/bytecode interpreter that did everything the game needed - keeping precious RAM for gameplay.
Which is why they seem to have ended up with Lua, which is probably the best fit for that problem domain. Cut down versions of Tcl probably would have been ok, and have been successfully used for things like embedded systems, but probably are more work than Lua, which is 'cut down' by default.