Пример #1
0
        private void ProcessExpression(NodeBase expression)
        {
            Expect(expression, NodeType.Expression);
            Queue <NodeBase> children = GetChildren(expression);

            ProcessTerm(children.Dequeue());
            if (children.Any())
            {
                Token op = GetSymbol(children.Dequeue());
                ProcessTerm(children.Dequeue());
                vmWriter.Arithmetic(op.Value);
            }
        }