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.
-
#start ⇒ Object
: Integer|nil.
Instance Method Summary collapse
-
#initialize(kind, pc, sp, arity, start = nil) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(kind, pc, sp, arity, start = nil) ⇒ Label
Returns a new instance of Label.
840 841 842 843 844 845 846 |
# File 'lib/wardite.rb', line 840 def initialize(kind, pc, sp, arity, start=nil) @kind = kind @pc = pc @sp = sp @arity = arity @start = start end |
Instance Attribute Details
#arity ⇒ Object
: Integer
830 831 832 |
# File 'lib/wardite.rb', line 830 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
825 826 827 |
# File 'lib/wardite.rb', line 825 def kind @kind end |
#pc ⇒ Object
: Integer
827 828 829 |
# File 'lib/wardite.rb', line 827 def pc @pc end |
#sp ⇒ Object
: Integer
828 829 830 |
# File 'lib/wardite.rb', line 828 def sp @sp end |
#start ⇒ Object
: Integer|nil
832 833 834 |
# File 'lib/wardite.rb', line 832 def start @start end |