Mercurial > pub > ImplabNet
diff Implab/Parsing/EDFADefinition.cs @ 157:948c015a9011 v2
sync
author | cin |
---|---|
date | Thu, 18 Feb 2016 11:03:47 +0300 |
parents | 97fbbf816844 |
children | 130781364799 |
line wrap: on
line diff
--- a/Implab/Parsing/EDFADefinition.cs Mon Feb 15 04:22:15 2016 +0300 +++ b/Implab/Parsing/EDFADefinition.cs Thu Feb 18 11:03:47 2016 +0300 @@ -18,6 +18,10 @@ get { return m_alphabet.Count; } } + public void DefineTransition(int s1, int s2, T input) { + DefineTransition(s1, s2, m_alphabet.Translate(input)); + } + public EDFADefinition<T> Optimize() { var optimized = new EDFADefinition<T>(new EnumAlphabet<T>()); Optimize(optimized, m_alphabet, optimized.Alphabet);