##// END OF EJS Templates
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()'...
added Safe.DispatchEvent() a legacy equivalent for '?.Invoke()' added Safe.Dispose(IEnumerable) added PromiseExtensions.CancellationPoint to add a cancellation point to the chain of promises added IPromise<T> PromiseExtensions.Then<T>(this IPromise<T> that, Action<T> success) overloads added PromiseExtensions.Error() overloads to handle a error or(and) a cancellation

File last commit:

r177:a0ff6a0e9c44 ref20160224
r207:558f34b2fb50 v2
Show More
SymbolToken.cs
27 lines | 683 B | text/x-csharp | CSharpLexer
using Implab;
namespace Implab.Automaton.RegularExpressions {
/// <summary>
/// Выражение, соответсвующее одному символу.
/// </summary>
public class SymbolToken: Token {
int m_value;
public int Value {
get { return m_value; }
}
public SymbolToken(int value) {
m_value = value;
}
public override void Accept(IVisitor visitor) {
Safe.ArgumentNotNull(visitor, "visitor");
visitor.Visit(this);
}
public override string ToString() {
return Value.ToString();
}
}
}