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

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

            evaluation.Push(c);

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