Class: Wardite::Label
- Inherits:
-
Object
- Object
- Wardite::Label
- Defined in:
- lib/wardite.rb
Instance Attribute Summary collapse
-
#arity ⇒ Object
: Integer.
-
#kind ⇒ Object
: (:if|:loop|:block).
-
#pc ⇒ Object
: Integer.
-
#sp ⇒ Object
: Integer.
Instance Method Summary collapse
-
#initialize(kind, pc, sp, arity) ⇒ Label
constructor
A new instance of Label.
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
#arity ⇒ Object
: Integer
1121 1122 1123 |
# File 'lib/wardite.rb', line 1121 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
1116 1117 1118 |
# File 'lib/wardite.rb', line 1116 def kind @kind end |
#pc ⇒ Object
: Integer
1118 1119 1120 |
# File 'lib/wardite.rb', line 1118 def pc @pc end |
#sp ⇒ Object
: Integer
1119 1120 1121 |
# File 'lib/wardite.rb', line 1119 def sp @sp end |