##// END OF EJS Templates
sync
sync

File last commit:

r165:e227e78d72e4 ref20160224
r168:8fb9c9507a26 ref20160224
Show More
ByteAlphabet.cs
25 lines | 609 B | text/x-csharp | CSharpLexer
using System.Collections.Generic;
using System.Linq;
using Implab.Automaton;
namespace Implab.Formats {
public class ByteAlphabet : IndexedAlphabetBase<byte> {
public ByteAlphabet() : base(byte.MaxValue + 1){
}
#region implemented abstract members of IndexedAlphabetBase
public override int GetSymbolIndex(byte symbol) {
return (int)symbol;
}
public IEnumerable<byte> InputSymbols {
get {
return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
}
}
#endregion
}
}