public virtual bool visitLeave(MultiplyExpression expression)
        {
            //a
            var b = evaluation.Pop();
            //b
            var a = evaluation.Pop();

            // multiply b to a
            Console.Error.WriteLine("EVAL - " + a.getText() + " * " + b.getText());
            var c = a.multiply(b);

            evaluation.Push(c);

            return true;
        }
Example #2
0
 public bool visitLeave(MultiplyExpression multiplyExpression)
 {
     return true;
 }
Example #3
0
 public bool visitEnter(MultiplyExpression multiplyExpression)
 {
     return true;
 }