﻿using System;

namespace ExpressionEvaluator.Parsers.Parsing.ExpressionTree.Expressions
{
    public class Expression
    {
        public string Description => "<" + GetType().Name.Replace("Expression", "") + ">";

        public virtual void AddChild(Expression child)
        {
            throw new NotSupportedException("An expression can't have children.");
        }
    }
}