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.



1068
1069
1070
1071
1072
1073
# File 'lib/wardite.rb', line 1068

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

Instance Attribute Details

#arityObject

: Integer



1061
1062
1063
# File 'lib/wardite.rb', line 1061

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



1056
1057
1058
# File 'lib/wardite.rb', line 1056

def kind
  @kind
end

#pcObject

: Integer



1058
1059
1060
# File 'lib/wardite.rb', line 1058

def pc
  @pc
end

#spObject

: Integer



1059
1060
1061
# File 'lib/wardite.rb', line 1059

def sp
  @sp
end