annotate Implab/Automaton/DFAStateDescriptor.cs @ 165:e227e78d72e4 ref20160224

DFA refactoring
author cin
date Mon, 29 Feb 2016 02:02:17 +0300
parents ec35731ae299
children 54270c2f29f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
164
ec35731ae299 Almost complete DFA refactoring
cin
parents: 162
diff changeset
1 namespace Implab.Automaton {
165
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
2 public struct DFAStateDescriptior {
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
3 public readonly bool final;
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
4 public readonly int[] transitions;
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
5
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
6
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
7 public DFAStateDescriptior(int[] transitions, bool final) {
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
8 this.transitions = transitions;
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
9 this.final = final;
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
10 }
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
11
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
12 public DFAStateDescriptior(int[] transitions) : this(transitions, false) {
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
13 }
162
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
14 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
15 }