groundwork for interpreter platform

especially positioning makes the previous interpreter approach to
fragile (too far off the real thing)
Interpreter should be it’s own platform (still use the risc
instructions),
get a translator and use positions
This commit is contained in:
Torsten Ruger
2018-05-16 21:00:14 +03:00
parent dc8afce444
commit 07ed16d765
5 changed files with 19 additions and 17 deletions

View File

@ -13,9 +13,10 @@ module Vool
statements = self.ruby_to_vool(source)
statements.to_mom(nil)
end
def self.ruby_to_binary(source)
def self.ruby_to_binary(source , platform = :arm)
machine = Risc.machine.boot
self.ruby_to_vool(source)
machine.translate(platform)
machine.position_all
machine.create_binary
end