Mercurial > pub > ImplabNet
diff Implab/Automaton/DFAStateDescriptor.cs @ 165:e227e78d72e4 ref20160224
DFA refactoring
author | cin |
---|---|
date | Mon, 29 Feb 2016 02:02:17 +0300 |
parents | ec35731ae299 |
children | 54270c2f29f2 |
line wrap: on
line diff
--- a/Implab/Automaton/DFAStateDescriptor.cs Thu Feb 25 02:11:13 2016 +0300 +++ b/Implab/Automaton/DFAStateDescriptor.cs Mon Feb 29 02:02:17 2016 +0300 @@ -1,7 +1,15 @@ namespace Implab.Automaton { - public struct DFAStateDescriptior<TTag> { - public bool final; - public TTag[] tag; - public int[] transitions; + public struct DFAStateDescriptior { + public readonly bool final; + public readonly int[] transitions; + + + public DFAStateDescriptior(int[] transitions, bool final) { + this.transitions = transitions; + this.final = final; + } + + public DFAStateDescriptior(int[] transitions) : this(transitions, false) { + } } }