Mercurial > pub > ImplabNet
comparison Implab/Automaton/RegularExpressions/StarToken.cs @ 177:a0ff6a0e9c44 ref20160224
refactoring
author | cin |
---|---|
date | Wed, 23 Mar 2016 01:42:00 +0300 |
parents | 0526412bbb26 |
children |
comparison
equal
deleted
inserted
replaced
176:0c3c69fe225b | 177:a0ff6a0e9c44 |
---|---|
1 using Implab; | 1 using Implab; |
2 using System; | 2 using System; |
3 using System.Collections.Generic; | 3 |
4 using System.Linq; | |
5 using System.Text; | |
6 using System.Threading.Tasks; | |
7 | 4 |
8 namespace Implab.Automaton.RegularExpressions { | 5 namespace Implab.Automaton.RegularExpressions { |
9 /// <summary> | 6 /// <summary> |
10 /// Замыкание выражения с 0 и более повторов. | 7 /// Замыкание выражения с 0 и более повторов. |
11 /// </summary> | 8 /// </summary> |
12 public class StarToken<TTag>: Token<TTag> { | 9 public class StarToken: Token { |
13 | 10 |
14 Token<TTag> m_token; | 11 Token m_token; |
15 | 12 |
16 public Token<TTag> Token { | 13 public Token Token { |
17 get { return m_token; } | 14 get { return m_token; } |
18 } | 15 } |
19 | 16 |
20 public StarToken(Token<TTag> token) { | 17 public StarToken(Token token) { |
21 Safe.ArgumentNotNull(token, "token"); | 18 Safe.ArgumentNotNull(token, "token"); |
22 m_token = token; | 19 m_token = token; |
23 } | 20 } |
24 | 21 |
25 public override void Accept(IVisitor<TTag> visitor) { | 22 public override void Accept(IVisitor visitor) { |
26 Safe.ArgumentNotNull(visitor, "visitor"); | 23 Safe.ArgumentNotNull(visitor, "visitor"); |
27 visitor.Visit(this); | 24 visitor.Visit(this); |
28 } | 25 } |
29 | 26 |
30 public override string ToString() { | 27 public override string ToString() { |