--- lam.repl local repl = {} local eval = require("eval").eval local read = require("read").read function repl.repl (prompt) if not prompt then prompt = "lam> " end io.input():setvbuf("line") repeat io.write(prompt) io.output():flush() local input = io.read() if input == nil then break end local value = eval(read(input)) if value then print(value) end until false end --- return repl