module SimpleRepl
    def receive_data data
        process = proc {
            begin
                eval(data)
            rescue ::Exception => e
                e.inspect
            end
        }
        output = proc { |r| send_data "> #{r}\n" }

        EventMachine.defer(process, output)
    end
end

module SimpleRepl
    def post_init
        send_data "Welcome to dsd repl.\n"
    end

    def receive_data data
        process = proc {
            begin
                eval(data)
            rescue ::Exception => e
                e.inspect
            end
        }
        output = proc { |r| send_data "> #{r}\n" }

        EventMachine.defer(process, output)
    end
end

Add a simple welcome message to the repl
Add a simple welcome message to the repl
