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.
938 939 940 941 942 943 944 |
# File 'lib/wardite.rb', line 938 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
928 929 930 |
# File 'lib/wardite.rb', line 928 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
923 924 925 |
# File 'lib/wardite.rb', line 923 def kind @kind end |
#pc ⇒ Object
: Integer
925 926 927 |
# File 'lib/wardite.rb', line 925 def pc @pc end |
#sp ⇒ Object
: Integer
926 927 928 |
# File 'lib/wardite.rb', line 926 def sp @sp end |
#start ⇒ Object
: Integer|nil
930 931 932 |
# File 'lib/wardite.rb', line 930 def start @start end |