public override void Visit(IFuncSeparatorToken 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); }
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()); } }