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) ⇒ Label

Returns a new instance of Label.



1128
1129
1130
1131
1132
1133
# File 'lib/wardite.rb', line 1128

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

Instance Attribute Details

#arityObject

: Integer



1121
1122
1123
# File 'lib/wardite.rb', line 1121

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



1116
1117
1118
# File 'lib/wardite.rb', line 1116

def kind
  @kind
end

#pcObject

: Integer



1118
1119
1120
# File 'lib/wardite.rb', line 1118

def pc
  @pc
end

#spObject

: Integer



1119
1120
1121
# File 'lib/wardite.rb', line 1119

def sp
  @sp
end