using System;
using System.Collections.Generic;
using System.Text;
namespace ScriptNET.Runtime.Operators
{
///
/// Base interface for all Operators
///
public interface IOperator
{
///
/// Operator symbol: +,-,/,++, etc.
///
string Name { get; }
///
/// Indicates unarity of the operator
///
bool Unary { get; }
///
/// should be used by unary operator
///
///
/// result or throws exception in case Unary=false
object Evaluate(object value);
///
/// should be used by unary operator
///
///
/// result or throws exception in case Unary=true
object Evaluate(object left, object right);
}
}