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.
888 889 890 891 892 893 894 |
# File 'lib/wardite.rb', line 888 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
878 879 880 |
# File 'lib/wardite.rb', line 878 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
873 874 875 |
# File 'lib/wardite.rb', line 873 def kind @kind end |
#pc ⇒ Object
: Integer
875 876 877 |
# File 'lib/wardite.rb', line 875 def pc @pc end |
#sp ⇒ Object
: Integer
876 877 878 |
# File 'lib/wardite.rb', line 876 def sp @sp end |
#start ⇒ Object
: Integer|nil
880 881 882 |
# File 'lib/wardite.rb', line 880 def start @start end |