Exemple #1
0
        private SyntaxNode ReadExpression()
        {
            tokens.AssertCanRead();
            SyntaxNode firstTerm = ReadTerm();

            if (NextTokenIsATermOperator())
            {
                return(new OperatorNode(Operator.Addition, ReadExpressionOperands(firstTerm)));
            }
            return(firstTerm);
        }