public override void Visit(IRBracketToken t) { // Get operators of subexpression List <IToken> subExpOperators = Utills.MoveUntil(m_operators, m_lbracketPr); // Add operators to the result(RPN) list m_resultTokens.AddRange(subExpOperators); // Remove left bracket m_operators.Pop(); // Function check if (m_operators.Count != 0 && Utills.Check(m_operators, m_funcNamePr)) { m_resultTokens.Add(m_operators.Pop()); } }
public override void Visit(IRBracketToken t) { if (m_edgesCurrent.Execute(t)) { m_edgesCurrent = m_edgesrbracket; m_bracketCounter--; if (m_bracketValues.Count != 0 && m_bracketCounter == m_bracketValues.Peek()) { FunctionLeave(); } } else { ThrowException(t); } }
public override void Visit(IRBracketToken t) { SetPriority(0); }
public virtual void Visit(IRBracketToken t) { }