diff Implab/Parsing/Alphabet.cs @ 59:21611344d366

code cleanup
author cin
date Wed, 18 Jun 2014 03:54:02 +0400
parents c0bf853aa04f
children
line wrap: on
line diff
--- a/Implab/Parsing/Alphabet.cs	Tue Jun 17 19:40:43 2014 +0400
+++ b/Implab/Parsing/Alphabet.cs	Wed Jun 18 03:54:02 2014 +0400
@@ -8,6 +8,10 @@
 namespace Implab.Parsing {
     public class Alphabet: AlphabetBase<char> {
 
+        public Alphabet()
+            : base(char.MaxValue + 1) {
+        }
+
         public override int GetSymbolIndex(char symbol) {
             return symbol;
         }
@@ -15,9 +19,5 @@
         public override IEnumerable<char> InputSymbols {
             get { return Enumerable.Range(char.MinValue, char.MaxValue).Select(x => (char)x); }
         }
-
-        protected override int MapSize {
-            get { return char.MaxValue + 1; }
-        }
     }
 }