annotate Implab/Automaton/RegularExpressions/EndTokenT.cs @ 187:dd4a3590f9c6 ref20160224

Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler Any unhandled OperationCanceledException will cause the promise cancelation
author cin
date Tue, 19 Apr 2016 17:35:20 +0300
parents d5c5db0335ee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
178
d5c5db0335ee working on JSON parser
cin
parents: 177
diff changeset
1 namespace Implab.Automaton.RegularExpressions {
177
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
2 /// <summary>
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
3 /// Конечный символ расширенного регулярного выражения, при построении ДКА
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
4 /// используется для определения конечных состояний.
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
5 /// </summary>
178
d5c5db0335ee working on JSON parser
cin
parents: 177
diff changeset
6 public class EndToken<TTag>: EndToken {
177
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
7
178
d5c5db0335ee working on JSON parser
cin
parents: 177
diff changeset
8 readonly TTag m_tag;
177
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
9
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
10 public EndToken(TTag tag) {
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
11 m_tag = tag;
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
12 }
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
13
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
14 public EndToken()
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
15 : this(default(TTag)) {
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
16 }
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
17
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
18 public TTag Tag {
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
19 get { return m_tag; }
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
20 }
178
d5c5db0335ee working on JSON parser
cin
parents: 177
diff changeset
21
177
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
22 }
a0ff6a0e9c44 refactoring
cin
parents:
diff changeset
23 }