public void Reduce(Type expression) { if (OperatorPrecedence.Applicable(expression)) { Reduce(OperatorPrecedence.Of(expression)); } }
private bool ShouldReduce(ExpressionParserHelper parseHelper) { if (parseHelper.PeekOnStack == null) { return(true); } var myPriority = OperatorPrecedence.Of(typeof(T)); var stackPriority = OperatorPrecedence.Of(parseHelper.PeekOnStack.GetType()); if (myPriority != stackPriority) { return(true); } return(false); }