public void Visit(DivideOperator divide) { divide.Left.Accept(this); var leftOperand = tacs.Last().Result; divide.Right.Accept(this); var rightOperand = tacs.Last().Result; tacs.Add(Tac.Divide(leftOperand, rightOperand, MakeNewTemp())); }
public void Visit(DivideOperator divide) { divide.Left.Accept(this); var leftOperand = tacs.Last().Result; divide.Right.Accept(this); var rightOperand = tacs.Last().Result; tacs.Add(Tac.Divide(leftOperand, rightOperand, MakeNewTemp())); }