Add mom boot options

and remove a lot of stale parfait boots from tests
(from before using rubyxc)
This commit is contained in:
2019-09-07 16:43:47 +03:00
parent 1539904ee2
commit 2c681bf2e5
25 changed files with 16 additions and 39 deletions

View File

@ -25,13 +25,14 @@ module RubyX
#
class RubyXCompiler
attr_reader :vool
attr_reader :vool , :options
# initialize boots Parfait and Risc (ie load Builin)
def initialize(options)
@options = options
Parfait.boot!(options[:parfait] || {})
Mom.boot!
Risc.boot!
Mom.boot!(options[:mom] || {})
Risc.boot!(options[:risc] || {})
end
# The highest level function creates binary code for the given ruby code