示例#1
0
        public override void Visit(IBinaryOpToken t)
        {
            ExpNode operand2 = m_nodes.Pop();
            ExpNode operand1 = m_nodes.Pop();

            char op = char.Parse(t.ToString());

            m_nodes.Push(Tables.BinaryOperatorsExpTable[op](operand1, operand2));
        }
示例#2
0
            public override void Visit(IBinaryOpToken t)
            {
                char op = char.Parse(t.ToString());

                SetPriority(Tables.BinaryOperatorsPriorityTable[op]);
            }