local chupacabra = require("chupacabra") -- simple repl to interact with chupacabra while true do io.write("chupacabra> ") local input = io.read() if input == "exit" then break end local output = chupacabra.run(input, {}) if type(output) == "table" then local outputString = "" for _, value in ipairs(output) do outputString = outputString .. " " .. value -- FIXME: this is dog water end print("["..outputString.."]") else print(output) end end