Mercurial > pub > ImplabNet
diff Implab/Automaton/RegularExpressions/RegularDFA.cs @ 179:478ef706906a ref20160224
sync
author | cin |
---|---|
date | Wed, 23 Mar 2016 19:52:08 +0300 |
parents | d5c5db0335ee |
children | c32688129f14 |
line wrap: on
line diff
--- a/Implab/Automaton/RegularExpressions/RegularDFA.cs Wed Mar 23 19:51:45 2016 +0300 +++ b/Implab/Automaton/RegularExpressions/RegularDFA.cs Wed Mar 23 19:52:08 2016 +0300 @@ -2,12 +2,12 @@ using System.Linq; namespace Implab.Automaton.RegularExpressions { - public class TaggedDFA<TInput, TTag> : DFATable, ITaggedDFABuilder<TTag> { + public class RegularDFA<TInput, TTag> : DFATable, ITaggedDFABuilder<TTag> { readonly Dictionary<int,TTag[]> m_tags = new Dictionary<int, TTag[]>(); readonly IAlphabet<TInput> m_alphabet; - public TaggedDFA(IAlphabet<TInput> alphabet) { + public RegularDFA(IAlphabet<TInput> alphabet) { Safe.ArgumentNotNull(alphabet, "aplhabet"); m_alphabet = alphabet; @@ -48,10 +48,10 @@ /// Optimize the specified alphabet. /// </summary> /// <param name="alphabet">Пустой алфавит, который будет зполнен в процессе оптимизации.</param> - public TaggedDFA<TInput,TTag> Optimize(IAlphabetBuilder<TInput> alphabet) { + public RegularDFA<TInput,TTag> Optimize(IAlphabetBuilder<TInput> alphabet) { Safe.ArgumentNotNull(alphabet, "alphabet"); - var dfa = new TaggedDFA<TInput, TTag>(alphabet); + var dfa = new RegularDFA<TInput, TTag>(alphabet); var states = new DummyAlphabet(StateCount); var alphaMap = new Dictionary<int,int>();