Mercurial > pub > ImplabNet
diff Implab/Automaton/MapAlphabet.cs @ 176:0c3c69fe225b ref20160224
rewritten the text scanner
author | cin |
---|---|
date | Tue, 22 Mar 2016 18:58:40 +0300 |
parents | 92d5278d1b10 |
children | d5c5db0335ee |
line wrap: on
line diff
--- a/Implab/Automaton/MapAlphabet.cs Mon Mar 21 18:41:45 2016 +0300 +++ b/Implab/Automaton/MapAlphabet.cs Tue Mar 22 18:58:40 2016 +0300 @@ -69,9 +69,16 @@ public IEnumerable<T> GetSymbols(int cls) { + Safe.ArgumentAssert(cls > 0, "cls"); return m_map.Where(p => p.Value == cls).Select(p => p.Key); } #endregion + + public IEnumerable<KeyValuePair<T,int>> Mappings { + get { + return m_map; + } + } } }