Example #1
0
        public BinaryExpression(AbstractExpression exp, BinaryOp op, string yVarName)
        {
            _xExp = exp;
            _yVarName = yVarName;

            _op = op;
            _scenario = Scenario.ExpVar;
        }
Example #2
0
        public BinaryExpression(AbstractExpression xExp, BinaryOp op, AbstractExpression yExp)
        {
            _xExp = xExp;
            _yExp = xExp;

            _op = op;
            _scenario = Scenario.ExpExp;
        }
Example #3
0
        public BinaryExpression(string xVarName, BinaryOp op, AbstractExpression exp)
        {
            if (string.IsNullOrEmpty(xVarName) || exp == null)
            {
                throw new ArgumentNullException();
            }

            _xVarName = xVarName;
            _yExp = exp;

            _op = op;
            _scenario = Scenario.VarExp;
        }