annotate Implab/Automaton/RegularExpressions/EndTokenT.cs @ 207:558f34b2fb50
v2
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()'
added Safe.Dispose(IEnumerable)
added PromiseExtensions.CancellationPoint to add a cancellation point to the chain of promises
added IPromise<T> PromiseExtensions.Then<T>(this IPromise<T> that, Action<T> success) overloads
added PromiseExtensions.Error() overloads to handle a error or(and) a cancellation
author |
cin |
date |
Wed, 09 Nov 2016 12:03:22 +0300 |
parents |
d5c5db0335ee |
children |
|
rev |
line source |
178
|
1 namespace Implab.Automaton.RegularExpressions {
|
177
|
2 /// <summary>
|
|
3 /// Конечный символ расширенного регулярного выражения, при построении ДКА
|
|
4 /// используется для определения конечных состояний.
|
|
5 /// </summary>
|
178
|
6 public class EndToken<TTag>: EndToken {
|
177
|
7
|
178
|
8 readonly TTag m_tag;
|
177
|
9
|
|
10 public EndToken(TTag tag) {
|
|
11 m_tag = tag;
|
|
12 }
|
|
13
|
|
14 public EndToken()
|
|
15 : this(default(TTag)) {
|
|
16 }
|
|
17
|
|
18 public TTag Tag {
|
|
19 get { return m_tag; }
|
|
20 }
|
178
|
21
|
177
|
22 }
|
|
23 }
|