| 171 | 1 using System; | 
|  | 2 | 
|  | 3 namespace Implab.Automaton.RegularExpressions { | 
| 172 | 4     public struct DFAStateDescriptor<T> { | 
| 171 | 5         public readonly bool final; | 
|  | 6 | 
|  | 7         public readonly int[] transitions; | 
|  | 8 | 
|  | 9         public readonly T[] tags; | 
|  | 10 | 
| 172 | 11         public DFAStateDescriptor(int size, bool final, T[] tags) { | 
| 171 | 12             Safe.ArgumentAssert(size >= 0, "size"); | 
|  | 13             this.final = final; | 
|  | 14             this.tags = tags; | 
|  | 15 | 
|  | 16             transitions = new int[size]; | 
|  | 17 | 
|  | 18             for (int i = 0; i < size; i++) | 
|  | 19                 transitions[i] = DFAConst.UNREACHABLE_STATE; | 
|  | 20         } | 
|  | 21     } | 
|  | 22 } | 
|  | 23 |