##// END OF EJS Templates
DFA refactoring
DFA refactoring

File last commit:

r162:0526412bbb26 ref20160224
r162:0526412bbb26 ref20160224
Show More
CDFADefinition.cs
22 lines | 644 B | text/x-csharp | CSharpLexer
namespace Implab.Automaton {
public class CDFADefinition : DFADefinition {
readonly CharAlphabet m_alphabet;
public CharAlphabet Alphabet {
get { return m_alphabet; }
}
public CDFADefinition(CharAlphabet alphabet): base(alphabet.Count) {
m_alphabet = alphabet;
}
public CDFADefinition Optimize() {
return (CDFADefinition)Optimize(alphabet => new CDFADefinition((CharAlphabet)alphabet), m_alphabet, new CharAlphabet());
}
public void PrintDFA() {
PrintDFA(m_alphabet);
}
}
}