using System.Collections.Generic; using System.Linq; using Implab.Automaton; namespace Implab.Formats { public class ByteAlphabet : IndexedAlphabetBase { #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 } }