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.
870 871 872 873 874 875 876 |
# File 'lib/wardite.rb', line 870 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
860 861 862 |
# File 'lib/wardite.rb', line 860 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
855 856 857 |
# File 'lib/wardite.rb', line 855 def kind @kind end |
#pc ⇒ Object
: Integer
857 858 859 |
# File 'lib/wardite.rb', line 857 def pc @pc end |
#sp ⇒ Object
: Integer
858 859 860 |
# File 'lib/wardite.rb', line 858 def sp @sp end |
#start ⇒ Object
: Integer|nil
862 863 864 |
# File 'lib/wardite.rb', line 862 def start @start end |