예제 #1
0
        public void Bin(PrimitiveOp op)
        {
            var right = stack.Pop();
            var left  = stack.Pop();

            stack.Push(new BinOp(op, left, right));
        }
예제 #2
0
파일: Exp.cs 프로젝트: smx-smx/InteropPOC
 public BinOp(PrimitiveOp op, Exp left, Exp right) : base(left.DataType)
 {
     this.op    = op;
     this.left  = left;
     this.right = right;
 }
예제 #3
0
        public void Unary(PrimitiveOp op)
        {
            var exp = stack.Pop();

            stack.Push(new Unary(op, exp));
        }