Exemple #1
0
        /// <summary>
        /// Visits a multiply expression.
        /// </summary>
        /// <param name="multiplyExpression"></param>
        public double VisitMultiplyExpression(MultiplyExpression multiplyExpression)
        {
            double op0 = multiplyExpression.Op0.Evaluate();
            double op1 = multiplyExpression.Op1.Evaluate();

            return(op0 * op1);
        }
Exemple #2
0
 /// <summary>
 /// Visits a multiply expression.
 /// </summary>
 /// <param name="multiplyExpression"></param>
 public string VisitMultiplyExpression(MultiplyExpression multiplyExpression)
 {
     return("");
 }