Пример #1
0
 public bool visitLeave(ModuloExpression moduloExpression)
 {
     return true;
 }
Пример #2
0
        public virtual bool visitLeave(ModuloExpression expression)
        {
            //a
            var b = evaluation.Pop();
            //b
            var a = evaluation.Pop();

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

            evaluation.Push(c);

            return true;
        }
Пример #3
0
 public bool visitEnter(ModuloExpression moduloExpression)
 {
     return true;
 }