rubyx/lib/rubyx/rubyxc.rb
Torsten Rüger d1f8733623 Rename Vool to Sol
Simple is really the descriptive name for the layer
Sure, it is "virtual" but that is not as important as the fact that it is simple (or simplified)
Also objct (based really) is better, since orientated implies it is a little like that, but only orientated, not really it. Sol only has objects, nothing else
Just cause i was renaming anyway
2019-10-04 00:38:47 +03:00

29 lines
686 B
Ruby

require "thor"
require "rubyx"
require "risc/interpreter"
class RubyXC < Thor
class_option :integers , type: :numeric
class_option :messages , type: :numeric
class_option :elf , type: :boolean
class_option :preload , type: :boolean
#
# Actual commands are required at the end, one per file, same name as command
#
private
def extract_options
opt = { Integer: options[:integers] || 1024 ,
Message: options[:messages] || 1024}
return {parfait: opt }
end
def get_preload
options[:preload] ? Sol::Builtin.builtin_code : ""
end
end
require_relative "stats"
require_relative "compile"
require_relative "interpret"
require_relative "execute"