Mercurial > pub > ImplabNet
annotate Implab/Formats/CharAlphabet.cs @ 176:0c3c69fe225b ref20160224
rewritten the text scanner
author | cin |
---|---|
date | Tue, 22 Mar 2016 18:58:40 +0300 |
parents | 92d5278d1b10 |
children | a0ff6a0e9c44 |
rev | line source |
---|---|
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 CharAlphabet: IndexedAlphabetBase<char> { |
7 | |
176 | 8 public CharAlphabet() { |
164 | 9 } |
10 | |
11 public override int GetSymbolIndex(char symbol) { | |
12 return symbol; | |
13 } | |
14 | |
176 | 15 public IEnumerable<char> InputSymbols { |
164 | 16 get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); } |
17 } | |
18 } | |
19 } |