##// END OF EJS Templates
rewritten the text scanner
rewritten the text scanner

File last commit:

r162:0526412bbb26 ref20160224
r176:0c3c69fe225b ref20160224
Show More
SymbolToken.cs
27 lines | 702 B | text/x-csharp | CSharpLexer
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();
}
}
}