rubyx/lib/vool/vool_compiler.rb
Torsten Ruger 5036dd68df remove to_mom from ruby_to_vool
must have slipped in
affects mosty tests
2018-06-29 14:57:48 +03:00

22 lines
463 B
Ruby

require_relative "ruby_compiler"
module Vool
class VoolCompiler
def self.ruby_to_vool( ruby_source )
vool = RubyCompiler.compile( ruby_source )
vool = vool.normalize
vool
end
def self.ruby_to_binary(source , platform = :arm)
machine = Risc.machine.boot
vool = self.ruby_to_vool(source)
vool.to_mom(nil)
machine.translate(platform)
machine.position_all
machine.create_binary
end
end
end