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 public ByteAlphabet() : base(byte.MaxValue + 1){
|
|
8 }
|
|
9
|
|
10 #region implemented abstract members of IndexedAlphabetBase
|
|
11
|
|
12 public override int GetSymbolIndex(byte symbol) {
|
|
13 return (int)symbol;
|
|
14 }
|
|
15
|
|
16 public IEnumerable<byte> InputSymbols {
|
|
17 get {
|
|
18 return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
|
|
19 }
|
|
20 }
|
|
21
|
|
22 #endregion
|
|
23 }
|
|
24 }
|
|
25
|