rubyx-debugger/app/main.rb

17 lines
341 B
Ruby
Raw Normal View History

require 'opal'
require "opal/parser"
require "salama"
2015-07-23 15:23:10 +02:00
require "interpreter"
require 'opal-react'
require "debugger"
2015-07-23 15:23:10 +02:00
require 'opal-jquery'
Document.ready? do # Document.ready? is a opal-jquery method.
2015-07-23 15:23:10 +02:00
machine = Virtual.machine.boot
React.render( React.create_element( Debugger , :machine => machine ), Element['#content'] )
end