Mercurial > pub > ImplabNet
comparison Implab/Automaton/DFAStateDescriptor.cs @ 169:54270c2f29f2 ref20160224
DFA refactoring
author | cin |
---|---|
date | Thu, 03 Mar 2016 08:41:02 +0300 |
parents | e227e78d72e4 |
children | 92d5278d1b10 |
comparison
equal
deleted
inserted
replaced
168:8fb9c9507a26 | 169:54270c2f29f2 |
---|---|
9 this.final = final; | 9 this.final = final; |
10 } | 10 } |
11 | 11 |
12 public DFAStateDescriptior(int[] transitions) : this(transitions, false) { | 12 public DFAStateDescriptior(int[] transitions) : this(transitions, false) { |
13 } | 13 } |
14 | |
15 public DFAStateDescriptior(int size, bool final) { | |
16 Safe.ArgumentInRange(size, 0, int.MaxValue, "size"); | |
17 | |
18 this.final = final; | |
19 | |
20 transitions = new int[size]; | |
21 | |
22 for (int i = 0; i < size; i++) | |
23 transitions[i] = DFAConst.UNREACHABLE_STATE; | |
24 } | |
14 } | 25 } |
15 } | 26 } |