remove to_mom from ruby_to_vool

must have slipped in
affects mosty tests
This commit is contained in:
Torsten Ruger
2018-06-29 14:57:48 +03:00
parent 6bd01fd55f
commit 5036dd68df
3 changed files with 25 additions and 16 deletions

View File

@ -4,15 +4,15 @@ module Vool
class VoolCompiler
def self.ruby_to_vool( ruby_source )
statements = RubyCompiler.compile( ruby_source )
statements = statements.normalize
statements.to_mom(nil)
statements
vool = RubyCompiler.compile( ruby_source )
vool = vool.normalize
vool
end
def self.ruby_to_binary(source , platform = :arm)
machine = Risc.machine.boot
self.ruby_to_vool(source)
vool = self.ruby_to_vool(source)
vool.to_mom(nil)
machine.translate(platform)
machine.position_all
machine.create_binary