class IDL::Engine::ProductionStack

def pop

def pop
  return nil if empty?
  id, prod = @stack.shift
  @index.delete(id)
  prod
end