comparison Implab/Parsing/EDFADefinition.cs @ 157:948c015a9011 v2

sync
author cin
date Thu, 18 Feb 2016 11:03:47 +0300
parents 97fbbf816844
children 130781364799
comparison
equal deleted inserted replaced
156:97fbbf816844 157:948c015a9011
16 16
17 public override int AlphabetSize { 17 public override int AlphabetSize {
18 get { return m_alphabet.Count; } 18 get { return m_alphabet.Count; }
19 } 19 }
20 20
21 public void DefineTransition(int s1, int s2, T input) {
22 DefineTransition(s1, s2, m_alphabet.Translate(input));
23 }
24
21 public EDFADefinition<T> Optimize() { 25 public EDFADefinition<T> Optimize() {
22 var optimized = new EDFADefinition<T>(new EnumAlphabet<T>()); 26 var optimized = new EDFADefinition<T>(new EnumAlphabet<T>());
23 Optimize(optimized, m_alphabet, optimized.Alphabet); 27 Optimize(optimized, m_alphabet, optimized.Alphabet);
24 28
25 return optimized; 29 return optimized;