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

File last commit:

r160:5802131432e4 v2
r161:2a8466f0cb8a v2
Show More
CDFADefinition.cs
22 lines | 642 B | text/x-csharp | CSharpLexer
cin
refactoring, code cleanup
r158 namespace Implab.Parsing {
public class CDFADefinition : DFADefinition {
readonly CharAlphabet m_alphabet;
cin
Added initial JSON support...
r55
cin
refactoring, code cleanup
r158 public CharAlphabet Alphabet {
cin
Added initial JSON support...
r55 get { return m_alphabet; }
}
cin
refactoring, code cleanup
r158 public CDFADefinition(CharAlphabet alphabet): base(alphabet.Count) {
cin
Added initial JSON support...
r55 m_alphabet = alphabet;
}
public CDFADefinition Optimize() {
cin
fixed regression: race condition in Promise...
r160
return (CDFADefinition)Optimize(alphabet => new CDFADefinition((CharAlphabet)alphabet), m_alphabet, new CharAlphabet());
cin
Added initial JSON support...
r55 }
public void PrintDFA() {
PrintDFA(m_alphabet);
}
}
}