using System;
using System.Collections.Generic;
using System.Text;
using CLab.Auxiliary;
namespace CLab
{
///
/// An expression consisting of a left and right side and an operator
///
public class BinaryExpression:Expression
{
private Expression right;
private Expression left;
///
/// Constructor
///
/// left expression
/// operator
/// right expression
public BinaryExpression(Expression left, Common.ExprType type, Expression right)
: base(type)
{
this.left = left;
this.right = right;
}
///
/// Returns left side
///
internal Expression Left
{
get { return left; }
}
///
/// returns right side
///
internal Expression Right
{
get { return right; }
}
}
}