eol warning
This commit is contained in:
parent
45977ecc01
commit
db01529b67
@ -50,13 +50,13 @@ module Arm
|
|||||||
# Length of all blocks. Does not take strings into account as they are added after all blocks.
|
# Length of all blocks. Does not take strings into account as they are added after all blocks.
|
||||||
# This is used to determine where a block when it is added after creation (see add_block)
|
# This is used to determine where a block when it is added after creation (see add_block)
|
||||||
def length
|
def length
|
||||||
@blocks.inject(0) {| sum , item | sum + item.length}
|
@blocks.inject(0) {| sum , item | sum + item.mem_length}
|
||||||
end
|
end
|
||||||
|
|
||||||
# This is how you add a forward declared block. This is called automatically when you
|
# This is how you add a forward declared block. This is called automatically when you
|
||||||
# call block with ruby block, but has to be done manually if not
|
# call block with ruby block, but has to be done manually if not
|
||||||
def add_block block
|
def add_block block
|
||||||
block.at self.length
|
block.at self.mem_length
|
||||||
@blocks << block
|
@blocks << block
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ module Virtual
|
|||||||
|
|
||||||
# Values must really be Constants or Variables, ie have a storage space
|
# Values must really be Constants or Variables, ie have a storage space
|
||||||
|
|
||||||
class Value
|
class Walue
|
||||||
def type
|
def type
|
||||||
raise "abstract called for #{self.class}"
|
raise "abstract called for #{self.class}"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user