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.



879
880
881
882
883
884
885
# File 'lib/wardite.rb', line 879

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

Instance Attribute Details

#arityObject

: Integer



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

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



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

def kind
  @kind
end

#pcObject

: Integer



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

def pc
  @pc
end

#spObject

: Integer



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

def sp
  @sp
end

#startObject

: Integer|nil



871
872
873
# File 'lib/wardite.rb', line 871

def start
  @start
end