|
using System;
namespace Evaluant.Calculator.Domain
{
public class BinaryExpresssion : LogicalExpression
{
public BinaryExpresssion(BinaryExpressionType type, LogicalExpression leftExpression, LogicalExpression rightExpression)
{
this.type = type;
this.leftExpression = leftExpression;
this.rightExpression = rightExpression;
}
private LogicalExpression leftExpression;
public LogicalExpression LeftExpression
{
get { return leftExpression; }
set { leftExpression = value; }
}
private LogicalExpression rightExpression;
public LogicalExpression RightExpression
{
get { return rightExpression; }
set { rightExpression = value; }
}
private BinaryExpressionType type;
public BinaryExpressionType Type
{
get { return type; }
set { type = value; }
}
public override void Accept(LogicalExpressionVisitor visitor)
{
visitor.Visit(this);
}
}
public enum BinaryExpressionType
{
And,
Or,
NotEqual,
LesserOrEqual,
GreaterOrEqual,
Lesser,
Greater,
Equal,
Minus,
Plus,
Modulo,
Div,
Times,
Pow,
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Under the secret identity of a C# programmer, a freaky guy who loves MSX computers and japanese culture is hidden. Beware!