jashkenas/coffee-script — pull request #2885 by danielgtaylor (2013-03-25 04:32:20+00:00)
Title: Expose CoffeeScript repl to allow building custom interactive shells

Added example showing some possible uses. Testing the example can be done like so:

$ coffee examples/interpreter.coffee
Welcome to the CoffeeScript interpreter!
interpreter> myAssert.ok true
undefined
interpreter> new MyObj().sayHello()
Hello, world!
undefined
interpreter> multiply 2, 4
8
interpreter>