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.
877 878 879 880 881 882 883 |
# File 'lib/wardite.rb', line 877 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
867 868 869 |
# File 'lib/wardite.rb', line 867 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
862 863 864 |
# File 'lib/wardite.rb', line 862 def kind @kind end |
#pc ⇒ Object
: Integer
864 865 866 |
# File 'lib/wardite.rb', line 864 def pc @pc end |
#sp ⇒ Object
: Integer
865 866 867 |
# File 'lib/wardite.rb', line 865 def sp @sp end |
#start ⇒ Object
: Integer|nil
869 870 871 |
# File 'lib/wardite.rb', line 869 def start @start end |