class Malady::Generator

Public Instance Methods

debug!() click to toggle source
# File lib/malady/generator.rb, line 3
def debug!
  p @detected_locals
  puts '*****'
  ip = 0
  while instruction = stream[ip]
    instruct = RBX::InstructionSet[instruction]
    ip += instruct.size
    puts "#{instruct.name}"
  end
  puts '**end**'
end
finalize() click to toggle source
# File lib/malady/generator.rb, line 15
def finalize
  self.local_names = state.scope.local_names
  self.local_count = state.scope.local_count
  pop_state
  close
end