Mercurial > pub > ImplabNet
diff Implab/Parsing/AlphabetBase.cs @ 59:21611344d366
code cleanup
author | cin |
---|---|
date | Wed, 18 Jun 2014 03:54:02 +0400 |
parents | c0bf853aa04f |
children | 97fbbf816844 |
line wrap: on
line diff
--- a/Implab/Parsing/AlphabetBase.cs Tue Jun 17 19:40:43 2014 +0400 +++ b/Implab/Parsing/AlphabetBase.cs Wed Jun 18 03:54:02 2014 +0400 @@ -17,13 +17,12 @@ get { return m_nextId; } } - protected AlphabetBase() { - m_map = new int[MapSize]; + protected AlphabetBase(int mapSize) { + m_map = new int[mapSize]; } protected AlphabetBase(int[] map) { Debug.Assert(map != null); - Debug.Assert(map.Length == MapSize); m_map = map; m_nextId = map.Max() + 1; @@ -94,8 +93,6 @@ public abstract IEnumerable<T> InputSymbols { get; } - protected abstract int MapSize { get; } - public int[] GetTranslationMap() { return m_map; }