rubyx/stash/fragments/helper.rb
Torsten Ruger 28ae1de59f cleaning out stash
most of the stuff is now reimplemented
fragments still open (as interpreter is not working yet)
2018-03-19 16:25:27 +05:30

18 lines
444 B
Ruby

require_relative '../helper'
require "risc/interpreter"
require "parser/ruby22"
module Rubyx
module RubyxTests
include CompilerHelper
include Risc::InterpreterHelpers
subs = ObjectSpace.each_object(Class).select { |klass| klass < Risc::Instruction }
subs.each do |clazz|
name = clazz.to_s
next if name.include?("Arm")
scoped = name.split("::").last
module_eval "#{scoped} = #{name}"
end
end
end