diff 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
line wrap: on
line diff
--- a/Implab/Formats/CharAlphabet.cs	Mon Mar 21 18:41:45 2016 +0300
+++ b/Implab/Formats/CharAlphabet.cs	Tue Mar 22 18:58:40 2016 +0300
@@ -5,19 +5,14 @@
 namespace Implab.Formats {
     public class CharAlphabet: IndexedAlphabetBase<char> {
 
-        public CharAlphabet()
-            : base(char.MaxValue + 1) {
+        public CharAlphabet() {
         }
 
         public override int GetSymbolIndex(char symbol) {
             return symbol;
         }
 
-        public override char GetSymbolByIndex(int index) {
-            return (char)index;
-        }
-
-        public override IEnumerable<char> InputSymbols {
+        public IEnumerable<char> InputSymbols {
             get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); }
         }
     }