src/newLexer.py
def pop_stack(self):
		''' pop the remainder of the stack to the output queue '''
		output = []
		# while stack isn't empty, remove it and add to the output
		while self.op_stack:
			operator = self.op_stack.pop()
			self.postfix.append(operator)
		# append the operator lists
		output += self.postfix
		# erase postfix state
		self.postfix = []
		return output
 pop the remainder of the stack to the output queue 
pop the remainder of the stack to the output queue
pop the remainder of the stack to the output queue
def pop_stack(self):
		output = []
		while self.op_stack:
			operator = self.op_stack.pop()
			self.postfix.append(operator)
		output += self.postfix
		self.postfix = []
		return output
def pop_stack ( self ) : output = [ ] while self . op_stack : operator = self . op_stack . pop ( ) self . postfix . append ( operator ) output += self . postfix self . postfix = [ ] return output
pop the remainder of the stack to the output queue
pop the remainder of the stack to the output queue
''' pop the remainder of the stack to the output queue ''' # while stack isn't empty, remove it and add to the output # append the operator lists # erase postfix state
self