Class: Wardite::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind, pc, sp, arity) ⇒ Label

Returns a new instance of Label.



581
582
583
584
585
586
# File 'lib/wardite.rb', line 581

def initialize(kind, pc, sp, arity)
  @kind = kind
  @pc = pc
  @sp = sp
  @arity = arity
end

Instance Attribute Details

#arityObject

: Integer



574
575
576
# File 'lib/wardite.rb', line 574

def arity
  @arity
end

#kindObject

: (:if|:loop|:block)



569
570
571
# File 'lib/wardite.rb', line 569

def kind
  @kind
end

#pcObject

: Integer



571
572
573
# File 'lib/wardite.rb', line 571

def pc
  @pc
end

#spObject

: Integer



572
573
574
# File 'lib/wardite.rb', line 572

def sp
  @sp
end