assembles more already

This commit is contained in:
Torsten Ruger
2015-06-03 10:01:59 +03:00
parent 3cdb3d513c
commit 4ddfcc4900
6 changed files with 23 additions and 7 deletions

View File

@ -15,7 +15,7 @@ module Parfait
@name = name
end
attr_reader :name
# this is a sof check if there are instance variables or "structure"
# have to override false, as word answers true
def is_value?
@ -24,5 +24,9 @@ module Parfait
def to_s
"BinaryCode #{@name}"
end
def == other
self.object_id == other.object_id
end
end
end

View File

@ -28,6 +28,10 @@ module Parfait
@object_class = object_class
end
def == other
self.object_id == other.object_id
end
# add the name of an instance variable
# The index will be returned and can subsequently be searched with index_of
# The index of the name is the index of the data in the object

View File

@ -61,7 +61,7 @@ module Parfait
index = has_local name
return index if index
@locals.push name
@locals.length
@locals.get_length
end
def get_var name

View File

@ -23,6 +23,10 @@ module Parfait
object
end
def == other
self.object_id == other.object_id
end
def get_type_of( index )
type_word = internal_object_get( TYPE_WORD )
res = type_word >> (index*4)