##// END OF EJS Templates
minor fix
minor fix

File last commit:

r158:130781364799 v2
r159:5558e43c79bb v2
Show More
CDFADefinition.cs
24 lines | 662 B | text/x-csharp | CSharpLexer
namespace Implab.Parsing {
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() {
var optimized = new CDFADefinition(new CharAlphabet());
Optimize(optimized, m_alphabet, optimized.Alphabet);
return optimized;
}
public void PrintDFA() {
PrintDFA(m_alphabet);
}
}
}