rename melon to rubyx
melon was still from the salama days and rubyx describes it much better
This commit is contained in:
parent
48d32a2b8e
commit
7abd777d05
@ -14,4 +14,4 @@ require "register/builtin/space"
|
||||
require "arm/arm_machine"
|
||||
require "arm/translator"
|
||||
|
||||
require "melon/ruby_compiler"
|
||||
require "rubyx/ruby_compiler"
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
class LocalsCollector < TotalProcessor
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
|
||||
class MethodCollector < TotalProcessor
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
|
||||
class MethodCompiler < AST::Processor
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
|
||||
class Normalizer < AST::Processor
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
|
||||
module Passes
|
||||
class TotalProcessor < AST::Processor
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
class TypeCollector < TotalProcessor
|
||||
|
@ -9,7 +9,7 @@ require_relative "passes/normalizer"
|
||||
require_relative "ruby_method"
|
||||
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class RubyCompiler < Passes::TotalProcessor
|
||||
|
||||
def self.compile( input )
|
@ -1,4 +1,4 @@
|
||||
module Melon
|
||||
module Rubyx
|
||||
|
||||
class RubyMethod
|
||||
|
@ -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 }
|
@ -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 = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestRubyCalls < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_calls
|
||||
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestRubyHello < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
Branch = Register::Branch
|
||||
Label = Register::Label
|
||||
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestRubyItos < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_itos
|
||||
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestRubyLoop < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_loop
|
||||
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestManyAdds < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_adds_looping
|
||||
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestManyCalls < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_calls_looping
|
||||
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestManyHello < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_hello_looping
|
||||
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
||||
require_relative 'helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestManyItos < MiniTest::Test
|
||||
include MelonTests
|
||||
include RubyxTests
|
||||
|
||||
def pest_ruby_itos_looping
|
||||
@string_input = <<HERE
|
@ -1,6 +1,6 @@
|
||||
require_relative '../helper'
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
module CompilerHelper
|
||||
|
||||
def in_Test(statements)
|
@ -1,6 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
class TestLocalsCollector < MiniTest::Test
|
||||
|
@ -1,6 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
class TestMethodCollector < MiniTest::Test
|
||||
|
@ -1,6 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
class TestNormalizer < MiniTest::Test
|
||||
|
@ -1,6 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
module Passes
|
||||
class TestTypeCollector < MiniTest::Test
|
||||
|
@ -1,6 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestCompiler < MiniTest::Test
|
||||
|
||||
def setup
|
@ -1,6 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Melon
|
||||
module Rubyx
|
||||
class TestRubyMethod < MiniTest::Test
|
||||
include CompilerHelper
|
||||
|
@ -4,7 +4,7 @@ require_relative "elf/test_all"
|
||||
|
||||
require_relative "lib/test_all"
|
||||
|
||||
require_relative "melon/test_all"
|
||||
require_relative "rubyx/test_all"
|
||||
|
||||
require_relative "register/test_all"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user