##// END OF EJS Templates
sync
sync

File last commit:

r172:92d5278d1b10 ref20160224
r175:96a89dcb4060 ref20160224
Show More
DFAStateDescriptorT.cs
23 lines | 572 B | text/x-csharp | CSharpLexer
using System;
namespace Implab.Automaton.RegularExpressions {
public struct DFAStateDescriptor<T> {
public readonly bool final;
public readonly int[] transitions;
public readonly T[] tags;
public DFAStateDescriptor(int size, bool final, T[] tags) {
Safe.ArgumentAssert(size >= 0, "size");
this.final = final;
this.tags = tags;
transitions = new int[size];
for (int i = 0; i < size; i++)
transitions[i] = DFAConst.UNREACHABLE_STATE;
}
}
}