[repl] support multiple line input