Mercurial > pub > ImplabNet
diff Implab/Parsing/DFABuilder.cs @ 158:130781364799 v2
refactoring, code cleanup
author | cin |
---|---|
date | Thu, 18 Feb 2016 14:34:02 +0300 |
parents | 97fbbf816844 |
children |
line wrap: on
line diff
--- a/Implab/Parsing/DFABuilder.cs Thu Feb 18 11:03:47 2016 +0300 +++ b/Implab/Parsing/DFABuilder.cs Thu Feb 18 14:34:02 2016 +0300 @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Implab.Parsing { /// <summary> @@ -118,7 +116,7 @@ if (m_root == null) m_root = token; m_idx++; - m_indexes[m_idx] = Alphabet.UNCLASSIFIED; + m_indexes[m_idx] = IndexedAlphabetBase<char>.UNCLASSIFIED; m_firstpos = new HashSet<int>(new[] { m_idx }); m_lastpos = new HashSet<int>(new[] { m_idx }); Followpos(m_idx); @@ -134,7 +132,7 @@ )); stateMap[m_firstpos] = DefineState( dfa, m_firstpos); - Debug.Assert(stateMap[m_firstpos] == DFADefinitionBase.INITIAL_STATE); + Debug.Assert(stateMap[m_firstpos] == DFADefinition.INITIAL_STATE); var queue = new Queue<HashSet<int>>();