| 
165
 | 
     1 using System.Collections.Generic;
 | 
| 
164
 | 
     2 using System.Linq;
 | 
| 
165
 | 
     3 using Implab.Automaton;
 | 
| 
164
 | 
     4 
 | 
| 
165
 | 
     5 namespace Implab.Formats {
 | 
| 
164
 | 
     6     public class ByteAlphabet : IndexedAlphabetBase<byte> {
 | 
| 
 | 
     7 
 | 
| 
 | 
     8         #region implemented abstract members of IndexedAlphabetBase
 | 
| 
 | 
     9 
 | 
| 
 | 
    10         public override int GetSymbolIndex(byte symbol) {
 | 
| 
 | 
    11             return (int)symbol;
 | 
| 
 | 
    12         }
 | 
| 
 | 
    13 
 | 
| 
 | 
    14         public IEnumerable<byte> InputSymbols {
 | 
| 
 | 
    15             get {
 | 
| 
 | 
    16                 return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
 | 
| 
 | 
    17             }
 | 
| 
 | 
    18         }
 | 
| 
 | 
    19 
 | 
| 
 | 
    20         #endregion
 | 
| 
 | 
    21     }
 | 
| 
 | 
    22 }
 | 
| 
 | 
    23 
 |