Implement a basic interpreter.