diff --git a/lib/rubyx.rb b/lib/rubyx.rb index dfc6204c..777d1c38 100644 --- a/lib/rubyx.rb +++ b/lib/rubyx.rb @@ -14,4 +14,4 @@ require "register/builtin/space" require "arm/arm_machine" require "arm/translator" -require "melon/ruby_compiler" +require "rubyx/ruby_compiler" diff --git a/lib/melon/passes/locals_collector.rb b/lib/rubyx/passes/locals_collector.rb similarity index 97% rename from lib/melon/passes/locals_collector.rb rename to lib/rubyx/passes/locals_collector.rb index 3f76b810..eea9ba40 100644 --- a/lib/melon/passes/locals_collector.rb +++ b/lib/rubyx/passes/locals_collector.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx module Passes class LocalsCollector < TotalProcessor diff --git a/lib/melon/passes/method_collector.rb b/lib/rubyx/passes/method_collector.rb similarity index 98% rename from lib/melon/passes/method_collector.rb rename to lib/rubyx/passes/method_collector.rb index 7b3644c3..7df58338 100644 --- a/lib/melon/passes/method_collector.rb +++ b/lib/rubyx/passes/method_collector.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx module Passes class MethodCollector < TotalProcessor diff --git a/lib/melon/passes/method_compiler.rb b/lib/rubyx/passes/method_compiler.rb similarity index 99% rename from lib/melon/passes/method_compiler.rb rename to lib/rubyx/passes/method_compiler.rb index 2faf51ce..750ed1bb 100644 --- a/lib/melon/passes/method_compiler.rb +++ b/lib/rubyx/passes/method_compiler.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx module Passes class MethodCompiler < AST::Processor diff --git a/lib/melon/passes/normalizer.rb b/lib/rubyx/passes/normalizer.rb similarity index 91% rename from lib/melon/passes/normalizer.rb rename to lib/rubyx/passes/normalizer.rb index 0b45d42c..543c59c2 100644 --- a/lib/melon/passes/normalizer.rb +++ b/lib/rubyx/passes/normalizer.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx module Passes class Normalizer < AST::Processor diff --git a/lib/melon/passes/total_processor.rb b/lib/rubyx/passes/total_processor.rb similarity index 94% rename from lib/melon/passes/total_processor.rb rename to lib/rubyx/passes/total_processor.rb index ff5a0f40..73cf4418 100644 --- a/lib/melon/passes/total_processor.rb +++ b/lib/rubyx/passes/total_processor.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx module Passes class TotalProcessor < AST::Processor diff --git a/lib/melon/passes/type_collector.rb b/lib/rubyx/passes/type_collector.rb similarity index 97% rename from lib/melon/passes/type_collector.rb rename to lib/rubyx/passes/type_collector.rb index 670aa7d5..ba80c164 100644 --- a/lib/melon/passes/type_collector.rb +++ b/lib/rubyx/passes/type_collector.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx module Passes class TypeCollector < TotalProcessor diff --git a/lib/melon/ruby_compiler.rb b/lib/rubyx/ruby_compiler.rb similarity index 99% rename from lib/melon/ruby_compiler.rb rename to lib/rubyx/ruby_compiler.rb index 09f974a2..9354eb62 100644 --- a/lib/melon/ruby_compiler.rb +++ b/lib/rubyx/ruby_compiler.rb @@ -9,7 +9,7 @@ require_relative "passes/normalizer" require_relative "ruby_method" -module Melon +module Rubyx class RubyCompiler < Passes::TotalProcessor def self.compile( input ) diff --git a/lib/melon/ruby_method.rb b/lib/rubyx/ruby_method.rb similarity index 98% rename from lib/melon/ruby_method.rb rename to lib/rubyx/ruby_method.rb index 067f990f..8557fdc3 100644 --- a/lib/melon/ruby_method.rb +++ b/lib/rubyx/ruby_method.rb @@ -1,4 +1,4 @@ -module Melon +module Rubyx class RubyMethod diff --git a/test/melon/fragments/collector.rb b/test/rubyx/fragments/collector.rb similarity index 100% rename from test/melon/fragments/collector.rb rename to test/rubyx/fragments/collector.rb diff --git a/test/melon/fragments/helper.rb b/test/rubyx/fragments/helper.rb similarity index 92% rename from test/melon/fragments/helper.rb rename to test/rubyx/fragments/helper.rb index cd33632c..5ea6001c 100644 --- a/test/melon/fragments/helper.rb +++ b/test/rubyx/fragments/helper.rb @@ -2,8 +2,8 @@ require_relative '../helper' require "register/interpreter" require "parser/ruby22" -module Melon - module MelonTests +module Rubyx + module RubyxTests include CompilerHelper include Register::InterpreterHelpers subs = ObjectSpace.each_object(Class).select { |klass| klass < Register::Instruction } diff --git a/test/melon/fragments/test_adds.rb b/test/rubyx/fragments/test_adds.rb similarity index 91% rename from test/melon/fragments/test_adds.rb rename to test/rubyx/fragments/test_adds.rb index 9c8ab13e..5a4192b5 100644 --- a/test/melon/fragments/test_adds.rb +++ b/test/rubyx/fragments/test_adds.rb @@ -1,8 +1,8 @@ require_relative 'helper' -module Melon +module Rubyx class TestRubyAdds < MiniTest::Test - include MelonTests + include RubyxTests def pest_ruby_adds @string_input = <