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.



1095
1096
1097
1098
1099
1100
# File 'lib/wardite.rb', line 1095

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

Instance Attribute Details

#arityObject

: Integer



1088
1089
1090
# File 'lib/wardite.rb', line 1088

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



1083
1084
1085
# File 'lib/wardite.rb', line 1083

def kind
  @kind
end

#pcObject

: Integer



1085
1086
1087
# File 'lib/wardite.rb', line 1085

def pc
  @pc
end

#spObject

: Integer



1086
1087
1088
# File 'lib/wardite.rb', line 1086

def sp
  @sp
end