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.
Instance Method Summary collapse
-
#initialize(kind, pc, sp, arity) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(kind, pc, sp, arity) ⇒ Label
Returns a new instance of Label.
1095 1096 1097 1098 1099 1100 |
# File 'lib/wardite.rb', line 1095 def initialize(kind, pc, sp, arity) @kind = kind @pc = pc @sp = sp @arity = arity end |
Instance Attribute Details
#arity ⇒ Object
: Integer
1088 1089 1090 |
# File 'lib/wardite.rb', line 1088 def arity @arity end |
#kind ⇒ Object
: (:if|:loop|:block)
1083 1084 1085 |
# File 'lib/wardite.rb', line 1083 def kind @kind end |
#pc ⇒ Object
: Integer
1085 1086 1087 |
# File 'lib/wardite.rb', line 1085 def pc @pc end |
#sp ⇒ Object
: Integer
1086 1087 1088 |
# File 'lib/wardite.rb', line 1086 def sp @sp end |