Class: Wardite::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind, pc, sp, arity, start = nil) ⇒ Label

Returns a new instance of Label.



876
877
878
879
880
881
882
# File 'lib/wardite.rb', line 876

def initialize(kind, pc, sp, arity, start=nil)
  @kind = kind
  @pc = pc
  @sp = sp
  @arity = arity
  @start = start
end

Instance Attribute Details

#arityObject

: Integer



866
867
868
# File 'lib/wardite.rb', line 866

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



861
862
863
# File 'lib/wardite.rb', line 861

def kind
  @kind
end

#pcObject

: Integer



863
864
865
# File 'lib/wardite.rb', line 863

def pc
  @pc
end

#spObject

: Integer



864
865
866
# File 'lib/wardite.rb', line 864

def sp
  @sp
end

#startObject

: Integer|nil



868
869
870
# File 'lib/wardite.rb', line 868

def start
  @start
end