Fixed REPL. Works for valid expressions only, so far.