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;
        }
Esempio n. 2
0
 public bool visitLeave(MultiplyExpression multiplyExpression)
 {
     return true;
 }
Esempio n. 3
0
 public bool visitEnter(MultiplyExpression multiplyExpression)
 {
     return true;
 }