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/arm_machine"
|
||||||
require "arm/translator"
|
require "arm/translator"
|
||||||
|
|
||||||
require "melon/ruby_compiler"
|
require "rubyx/ruby_compiler"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
class LocalsCollector < TotalProcessor
|
class LocalsCollector < TotalProcessor
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
|
|
||||||
class MethodCollector < TotalProcessor
|
class MethodCollector < TotalProcessor
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
|
|
||||||
class MethodCompiler < AST::Processor
|
class MethodCompiler < AST::Processor
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
|
|
||||||
class Normalizer < AST::Processor
|
class Normalizer < AST::Processor
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
|
|
||||||
module Passes
|
module Passes
|
||||||
class TotalProcessor < AST::Processor
|
class TotalProcessor < AST::Processor
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
class TypeCollector < TotalProcessor
|
class TypeCollector < TotalProcessor
|
||||||
|
|
@ -9,7 +9,7 @@ require_relative "passes/normalizer"
|
|||||||
require_relative "ruby_method"
|
require_relative "ruby_method"
|
||||||
|
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class RubyCompiler < Passes::TotalProcessor
|
class RubyCompiler < Passes::TotalProcessor
|
||||||
|
|
||||||
def self.compile( input )
|
def self.compile( input )
|
@ -1,4 +1,4 @@
|
|||||||
module Melon
|
module Rubyx
|
||||||
|
|
||||||
class RubyMethod
|
class RubyMethod
|
||||||
|
|
@ -2,8 +2,8 @@ require_relative '../helper'
|
|||||||
require "register/interpreter"
|
require "register/interpreter"
|
||||||
require "parser/ruby22"
|
require "parser/ruby22"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
module MelonTests
|
module RubyxTests
|
||||||
include CompilerHelper
|
include CompilerHelper
|
||||||
include Register::InterpreterHelpers
|
include Register::InterpreterHelpers
|
||||||
subs = ObjectSpace.each_object(Class).select { |klass| klass < Register::Instruction }
|
subs = ObjectSpace.each_object(Class).select { |klass| klass < Register::Instruction }
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestRubyAdds < MiniTest::Test
|
class TestRubyAdds < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_adds
|
def pest_ruby_adds
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestRubyCalls < MiniTest::Test
|
class TestRubyCalls < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_calls
|
def pest_ruby_calls
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestRubyHello < MiniTest::Test
|
class TestRubyHello < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
Branch = Register::Branch
|
Branch = Register::Branch
|
||||||
Label = Register::Label
|
Label = Register::Label
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestRubyItos < MiniTest::Test
|
class TestRubyItos < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_itos
|
def pest_ruby_itos
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestRubyLoop < MiniTest::Test
|
class TestRubyLoop < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_loop
|
def pest_ruby_loop
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestManyAdds < MiniTest::Test
|
class TestManyAdds < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_adds_looping
|
def pest_ruby_adds_looping
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestManyCalls < MiniTest::Test
|
class TestManyCalls < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_calls_looping
|
def pest_ruby_calls_looping
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestManyHello < MiniTest::Test
|
class TestManyHello < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_hello_looping
|
def pest_ruby_hello_looping
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,8 +1,8 @@
|
|||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestManyItos < MiniTest::Test
|
class TestManyItos < MiniTest::Test
|
||||||
include MelonTests
|
include RubyxTests
|
||||||
|
|
||||||
def pest_ruby_itos_looping
|
def pest_ruby_itos_looping
|
||||||
@string_input = <<HERE
|
@string_input = <<HERE
|
@ -1,6 +1,6 @@
|
|||||||
require_relative '../helper'
|
require_relative '../helper'
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
module CompilerHelper
|
module CompilerHelper
|
||||||
|
|
||||||
def in_Test(statements)
|
def in_Test(statements)
|
@ -1,6 +1,6 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
class TestLocalsCollector < MiniTest::Test
|
class TestLocalsCollector < MiniTest::Test
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
class TestMethodCollector < MiniTest::Test
|
class TestMethodCollector < MiniTest::Test
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
class TestNormalizer < MiniTest::Test
|
class TestNormalizer < MiniTest::Test
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
module Passes
|
module Passes
|
||||||
class TestTypeCollector < MiniTest::Test
|
class TestTypeCollector < MiniTest::Test
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestCompiler < MiniTest::Test
|
class TestCompiler < MiniTest::Test
|
||||||
|
|
||||||
def setup
|
def setup
|
@ -1,6 +1,6 @@
|
|||||||
require_relative "helper"
|
require_relative "helper"
|
||||||
|
|
||||||
module Melon
|
module Rubyx
|
||||||
class TestRubyMethod < MiniTest::Test
|
class TestRubyMethod < MiniTest::Test
|
||||||
include CompilerHelper
|
include CompilerHelper
|
||||||
|
|
@ -4,7 +4,7 @@ require_relative "elf/test_all"
|
|||||||
|
|
||||||
require_relative "lib/test_all"
|
require_relative "lib/test_all"
|
||||||
|
|
||||||
require_relative "melon/test_all"
|
require_relative "rubyx/test_all"
|
||||||
|
|
||||||
require_relative "register/test_all"
|
require_relative "register/test_all"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user