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.



888
889
890
891
892
893
894
# File 'lib/wardite.rb', line 888

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

Instance Attribute Details

#arityObject

: Integer



878
879
880
# File 'lib/wardite.rb', line 878

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



873
874
875
# File 'lib/wardite.rb', line 873

def kind
  @kind
end

#pcObject

: Integer



875
876
877
# File 'lib/wardite.rb', line 875

def pc
  @pc
end

#spObject

: Integer



876
877
878
# File 'lib/wardite.rb', line 876

def sp
  @sp
end

#startObject

: Integer|nil



880
881
882
# File 'lib/wardite.rb', line 880

def start
  @start
end