annotate Implab/Automaton/DFAStateDescriptor.cs @ 167:96681e9d0cea ref20160224

sync
author cin
date Wed, 02 Mar 2016 00:20:48 +0300
parents e227e78d72e4
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 }