コード例 #1
0
        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;
        }
コード例 #2
0
 public bool visitEnter(SubtractExpression subtractExpression)
 {
     return true;
 }
コード例 #3
0
 public bool visitLeave(SubtractExpression subtractExpression)
 {
     return true;
 }