|
using System;
namespace Evaluant.Calculator.Domain
{
public class UnaryExpression : LogicalExpression
{
public UnaryExpression(UnaryExpressionType type, LogicalExpression expression)
{
this.type = type;
this.expression = expression;
}
private LogicalExpression expression;
public LogicalExpression Expression
{
get { return expression; }
set { expression = value; }
}
private UnaryExpressionType type;
public UnaryExpressionType Type
{
get { return type; }
set { type = value; }
}
public override void Accept(LogicalExpressionVisitor visitor)
{
visitor.Visit(this);
}
}
public enum UnaryExpressionType
{
Not,
Negate
}
}
|
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!