Mercurial > pub > ImplabNet
comparison Implab/Automaton/RegularExpressions/SymbolToken.cs @ 190:1c2a16d071a7 v2
Слияние с ref20160224
author | cin |
---|---|
date | Fri, 22 Apr 2016 13:08:08 +0300 |
parents | a0ff6a0e9c44 |
children |
comparison
equal
deleted
inserted
replaced
161:2a8466f0cb8a | 190:1c2a16d071a7 |
---|---|
1 using Implab; | |
2 | |
3 namespace Implab.Automaton.RegularExpressions { | |
4 /// <summary> | |
5 /// Выражение, соответсвующее одному символу. | |
6 /// </summary> | |
7 public class SymbolToken: Token { | |
8 int m_value; | |
9 | |
10 public int Value { | |
11 get { return m_value; } | |
12 } | |
13 | |
14 public SymbolToken(int value) { | |
15 m_value = value; | |
16 } | |
17 public override void Accept(IVisitor visitor) { | |
18 Safe.ArgumentNotNull(visitor, "visitor"); | |
19 | |
20 visitor.Visit(this); | |
21 } | |
22 | |
23 public override string ToString() { | |
24 return Value.ToString(); | |
25 } | |
26 } | |
27 } |