view 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 source

namespace Implab.Automaton {
    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) {
        }
    }
}