rename singleton_class to single_class and misc

was clashing with real ruby method name
also many superclass mismatch fixes
some misc
This commit is contained in:
2019-09-24 17:25:19 +03:00
parent dd810cfc49
commit 3df54910cc
29 changed files with 87 additions and 35 deletions

View File

@ -15,6 +15,7 @@ module RubyX
end
def compile_in_test( input , options = {})
vool = ruby_to_vool(in_Test(input) , options)
vool.to_parfait
vool.to_mom(nil)
itest = Parfait.object_space.get_class_by_name(:Test)
assert itest
@ -23,7 +24,7 @@ module RubyX
end
module ParfaitHelper
include Preloader
def load_parfait(file)
File.read File.expand_path("../../../lib/parfait/#{file}.rb",__FILE__)
end

View File

@ -8,7 +8,7 @@ module RubyX
def len ; 25 ; end
def source
<<GET
class Integer
class Integer < Data4
def #{op}(other)
X.comparison(:"#{op}")
end

View File

@ -6,7 +6,7 @@ module RubyX
include MacroHelper
def source
<<GET
class Integer
class Integer < Data4
def div10
X.div10
end

View File

@ -6,7 +6,7 @@ module RubyX
include MacroHelper
def source
<<GET
class Integer
class Integer < Data4
def div4
X.div4
end

View File

@ -7,7 +7,7 @@ module RubyX
def op ; :+ ; end
def source
<<GET
class Integer
class Integer < Data4
def #{op}(other)
X.int_operator(:"#{op}")
end

View File

@ -6,7 +6,7 @@ module RubyX
include MacroHelper
def source
<<GET
class Word
class Word < Data8
def get_internal_byte(at)
X.get_internal_byte
end

View File

@ -6,7 +6,7 @@ module RubyX
include MacroHelper
def source
<<GET
class Word
class Word < Data8
def putstring
X.putstring
end

View File

@ -6,7 +6,7 @@ module RubyX
include MacroHelper
def source
<<GET
class Word
class Word < Data8
def set_internal_byte( at , value)
X.set_internal_byte
end