Mercurial > pub > ImplabNet
comparison Implab/Automaton/ByteAlphabet.cs @ 162:0526412bbb26 ref20160224
DFA refactoring
| author | cin | 
|---|---|
| date | Wed, 24 Feb 2016 08:39:53 +0300 | 
| parents | |
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 161:2a8466f0cb8a | 162:0526412bbb26 | 
|---|---|
| 1 using System; | |
| 2 | |
| 3 namespace Implab.Automaton { | |
| 4 public class ByteAlphabet : IndexedAlphabetBase<byte> { | |
| 5 public ByteAlphabet() : base(byte.MaxValue + 1){ | |
| 6 } | |
| 7 | |
| 8 #region implemented abstract members of IndexedAlphabetBase | |
| 9 | |
| 10 public override int GetSymbolIndex(byte symbol) { | |
| 11 return (int)symbol; | |
| 12 } | |
| 13 | |
| 14 public override System.Collections.Generic.IEnumerable<byte> InputSymbols { | |
| 15 get { | |
| 16 throw new NotImplementedException(); | |
| 17 } | |
| 18 } | |
| 19 | |
| 20 #endregion | |
| 21 } | |
| 22 } | |
| 23 | 
