using System; using System.Collections.Generic; using System.Linq; namespace Implab.Automaton { public class ByteAlphabet : IndexedAlphabetBase { public ByteAlphabet() : base(byte.MaxValue + 1){ } #region implemented abstract members of IndexedAlphabetBase public override int GetSymbolIndex(byte symbol) { return (int)symbol; } public IEnumerable InputSymbols { get { return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast(); } } #endregion } }