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.
919 920 921 922 923 924 925 |
# File 'lib/wardite.rb', line 919 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
909 910 911 |
# File 'lib/wardite.rb', line 909 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
904 905 906 |
# File 'lib/wardite.rb', line 904 def kind @kind end |
#pc ⇒ Object
: Integer
906 907 908 |
# File 'lib/wardite.rb', line 906 def pc @pc end |
#sp ⇒ Object
: Integer
907 908 909 |
# File 'lib/wardite.rb', line 907 def sp @sp end |
#start ⇒ Object
: Integer|nil
911 912 913 |
# File 'lib/wardite.rb', line 911 def start @start end |