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
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 }