comparison Implab/Automaton/RegularExpressions/SymbolToken.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
2 2
3 namespace Implab.Automaton.RegularExpressions { 3 namespace Implab.Automaton.RegularExpressions {
4 /// <summary> 4 /// <summary>
5 /// Выражение, соответсвующее одному символу. 5 /// Выражение, соответсвующее одному символу.
6 /// </summary> 6 /// </summary>
7 public class SymbolToken<TTag> : Token<TTag> { 7 public class SymbolToken: Token {
8 int m_value; 8 int m_value;
9 9
10 public int Value { 10 public int Value {
11 get { return m_value; } 11 get { return m_value; }
12 } 12 }
13 13
14 public SymbolToken(int value) { 14 public SymbolToken(int value) {
15 m_value = value; 15 m_value = value;
16 } 16 }
17 public override void Accept(IVisitor<TTag> visitor) { 17 public override void Accept(IVisitor visitor) {
18 Safe.ArgumentNotNull(visitor, "visitor"); 18 Safe.ArgumentNotNull(visitor, "visitor");
19 19
20 visitor.Visit(this); 20 visitor.Visit(this);
21 } 21 }
22 22