Mercurial > pub > ImplabNet
comparison Implab/Automaton/DFAStateDescriptor.cs @ 165:e227e78d72e4 ref20160224
DFA refactoring
author | cin |
---|---|
date | Mon, 29 Feb 2016 02:02:17 +0300 |
parents | ec35731ae299 |
children | 54270c2f29f2 |
comparison
equal
deleted
inserted
replaced
164:ec35731ae299 | 165:e227e78d72e4 |
---|---|
1 namespace Implab.Automaton { | 1 namespace Implab.Automaton { |
2 public struct DFAStateDescriptior<TTag> { | 2 public struct DFAStateDescriptior { |
3 public bool final; | 3 public readonly bool final; |
4 public TTag[] tag; | 4 public readonly int[] transitions; |
5 public int[] transitions; | 5 |
6 | |
7 public DFAStateDescriptior(int[] transitions, bool final) { | |
8 this.transitions = transitions; | |
9 this.final = final; | |
10 } | |
11 | |
12 public DFAStateDescriptior(int[] transitions) : this(transitions, false) { | |
13 } | |
6 } | 14 } |
7 } | 15 } |