repl to code