public BinaryExpression(AbstractExpression exp, BinaryOp op, string yVarName) { _xExp = exp; _yVarName = yVarName; _op = op; _scenario = Scenario.ExpVar; }
public BinaryExpression(AbstractExpression xExp, BinaryOp op, AbstractExpression yExp) { _xExp = xExp; _yExp = xExp; _op = op; _scenario = Scenario.ExpExp; }
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; }