annotate Implab/Automaton/IDFADefinitionBuilder.cs @ 162:0526412bbb26 ref20160224

DFA refactoring
author cin
date Wed, 24 Feb 2016 08:39:53 +0300
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
1 using System;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
2
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
3 namespace Implab.Automaton {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
4 public interface IDFADefinitionBuilder<TTag> {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
5 /// <summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
6 /// Marks the state as final and assings tags.
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
7 /// </summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
8 /// <param name="state">State.</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
9 /// <param name="tags">Tags.</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
10 void MarkFinalState(int state, params TTag[] tags);
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
11
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
12 /// <summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
13 /// Defines the transition from <paramref name="s1"/> to
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
14 /// <paramref name="s2"/> with input <paramref name="symbol"/>.
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
15 /// </summary>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
16 /// <param name="s1">S1.</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
17 /// <param name="s2">S2.</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
18 /// <param name="symbol">Symbol.</param>
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
19 void DefineTransition(int s1, int s2, int symbol);
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
20
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
21 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
22 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
23