code: def process_instrs(queue, stack, body, context):
      
      next_instr = queue.popleft
      while queue:
          newcontext = _process_instr(next_instr(), queue, stack, body, context)
          if newcontext is not None:
              context = newcontext
docs: Process instructions from the instruction queue.