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.



932
933
934
935
936
937
938
# File 'lib/wardite.rb', line 932

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

Instance Attribute Details

#arityObject

: Integer



922
923
924
# File 'lib/wardite.rb', line 922

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



917
918
919
# File 'lib/wardite.rb', line 917

def kind
  @kind
end

#pcObject

: Integer



919
920
921
# File 'lib/wardite.rb', line 919

def pc
  @pc
end

#spObject

: Integer



920
921
922
# File 'lib/wardite.rb', line 920

def sp
  @sp
end

#startObject

: Integer|nil



924
925
926
# File 'lib/wardite.rb', line 924

def start
  @start
end