##// END OF EJS Templates
DFA refactoring, rx based dfa.
DFA refactoring, rx based dfa.

File last commit:

r162:0526412bbb26 ref20160224
r170:181119ef3b39 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();
}
}
}