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.
581 582 583 584 585 586 |
# File 'lib/wardite.rb', line 581 def initialize(kind, pc, sp, arity) @kind = kind @pc = pc @sp = sp @arity = arity end |
Instance Attribute Details
#arity ⇒ Object
: Integer
574 575 576 |
# File 'lib/wardite.rb', line 574 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
569 570 571 |
# File 'lib/wardite.rb', line 569 def kind @kind end |
#pc ⇒ Object
: Integer
571 572 573 |
# File 'lib/wardite.rb', line 571 def pc @pc end |
#sp ⇒ Object
: Integer
572 573 574 |
# File 'lib/wardite.rb', line 572 def sp @sp end |