##// END OF EJS Templates
Working on text scanner
Working on text scanner

File last commit:

r162:0526412bbb26 ref20160224
r172:92d5278d1b10 ref20160224
Show More
SymbolToken.cs
27 lines | 702 B | text/x-csharp | CSharpLexer
cin
DFA refactoring
r162 using Implab;
namespace Implab.Automaton.RegularExpressions {
/// <summary>
/// Выражение, соответсвующее одному символу.
/// </summary>
public class SymbolToken<TTag> : Token<TTag> {
int m_value;
public int Value {
get { return m_value; }
}
public SymbolToken(int value) {
m_value = value;
}
public override void Accept(IVisitor<TTag> visitor) {
Safe.ArgumentNotNull(visitor, "visitor");
visitor.Visit(this);
}
public override string ToString() {
return Value.ToString();
}
}
}