public virtual bool visitLeave(SubtractExpression subtractExpression) { //a var b = evaluation.Pop(); //b var a = evaluation.Pop(); // subtract b to a Console.Error.WriteLine("EVAL - " + a.getText() + " - " + b.getText()); var c = a.subtract(b); evaluation.Push(c); return true; }
public bool visitEnter(SubtractExpression subtractExpression) { return true; }
public bool visitLeave(SubtractExpression subtractExpression) { return true; }