Mercurial > pub > ImplabNet
annotate Implab/Automaton/DFAStateDescriptor.cs @ 165:e227e78d72e4 ref20160224
DFA refactoring
author | cin |
---|---|
date | Mon, 29 Feb 2016 02:02:17 +0300 |
parents | ec35731ae299 |
children | 54270c2f29f2 |
rev | line source |
---|---|
164 | 1 namespace Implab.Automaton { |
165 | 2 public struct DFAStateDescriptior { |
3 public readonly bool final; | |
4 public readonly 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 } | |
162 | 14 } |
15 } |