view Implab/Automaton/RegularExpressions/EndTokenT.cs @ 196:40d7fed4a09e

fixed promise chaining behavior, the error handler doesn't handle result or cancellation handlers exceptions these exceptions are propagated to the next handlers.
author cin
date Mon, 29 Aug 2016 23:15:51 +0300
parents d5c5db0335ee
children
line wrap: on
line source

namespace Implab.Automaton.RegularExpressions {
    /// <summary>
    /// Конечный символ расширенного регулярного выражения, при построении ДКА
    /// используется для определения конечных состояний.
    /// </summary>
    public class EndToken<TTag>: EndToken {

        readonly TTag m_tag;

        public EndToken(TTag tag) {
            m_tag = tag;
        }

        public EndToken()
            : this(default(TTag)) {
        }

        public TTag Tag {
            get { return m_tag; }
        }

    }
}