Mercurial > pub > ImplabNet
comparison Implab/Automaton/RegularExpressions/SymbolToken.cs @ 192:f1da3afc3521 release v2.1
Слияние с v2
author | cin |
---|---|
date | Fri, 22 Apr 2016 13:10:34 +0300 |
parents | a0ff6a0e9c44 |
children |
comparison
equal
deleted
inserted
replaced
71:1714fd8678ef | 192:f1da3afc3521 |
---|---|
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 } |