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.
|
||||
# This is used to determine where a block when it is added after creation (see add_block)
|
||||
def length
|
||||
@blocks.inject(0) {| sum , item | sum + item.length}
|
||||
@blocks.inject(0) {| sum , item | sum + item.mem_length}
|
||||
end
|
||||
|
||||
# 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
|
||||
def add_block block
|
||||
block.at self.length
|
||||
block.at self.mem_length
|
||||
@blocks << block
|
||||
end
|
||||
|
||||
|
@ -5,7 +5,7 @@ module Virtual
|
||||
|
||||
# Values must really be Constants or Variables, ie have a storage space
|
||||
|
||||
class Value
|
||||
class Walue
|
||||
def type
|
||||
raise "abstract called for #{self.class}"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user