comparison Implab/Formats/ByteAlphabet.cs @ 172:92d5278d1b10 ref20160224

Working on text scanner
author cin
date Mon, 14 Mar 2016 01:19:38 +0300
parents e227e78d72e4
children 0c3c69fe225b
comparison
equal deleted inserted replaced
171:0f70905b4652 172:92d5278d1b10
11 11
12 public override int GetSymbolIndex(byte symbol) { 12 public override int GetSymbolIndex(byte symbol) {
13 return (int)symbol; 13 return (int)symbol;
14 } 14 }
15 15
16 public override byte GetSymbolByIndex(int index) {
17 return (byte)index;
18 }
19
16 public IEnumerable<byte> InputSymbols { 20 public IEnumerable<byte> InputSymbols {
17 get { 21 get {
18 return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>(); 22 return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
19 } 23 }
20 } 24 }