Implemented the interpreter.

Supports all commands except input.  Nicely demonstrates C++ templates being
turing-complete.