annotate Implab/Automaton/RegularExpressions/EndTokenT.cs @ 203:4d9830a9bbb8
v2
Added 'Fail' method to RunnableComponent which allows component to move from
Running to Failed state.
Added PollingComponent a timer based runnable component
More tests
Added FailPromise a thin class to wrap exceptions
Fixed error handling in SuccessPromise classes.
author |
cin |
date |
Tue, 18 Oct 2016 17:49:54 +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 }
|