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.
905 906 907 908 909 910 911 |
# File 'lib/wardite.rb', line 905 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
895 896 897 |
# File 'lib/wardite.rb', line 895 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
890 891 892 |
# File 'lib/wardite.rb', line 890 def kind @kind end |
#pc ⇒ Object
: Integer
892 893 894 |
# File 'lib/wardite.rb', line 892 def pc @pc end |
#sp ⇒ Object
: Integer
893 894 895 |
# File 'lib/wardite.rb', line 893 def sp @sp end |
#start ⇒ Object
: Integer|nil
897 898 899 |
# File 'lib/wardite.rb', line 897 def start @start end |