comparison Implab/Parsing/EDFADefinition.cs @ 156:97fbbf816844 v2

Promises: SignalXXX methods merged into SignalHandler method. Components: RunnableComponent In progress
author cin
date Mon, 15 Feb 2016 04:22:15 +0300
parents c0bf853aa04f
children 948c015a9011
comparison
equal deleted inserted replaced
155:037df317f126 156:97fbbf816844
1 using Implab; 1 using Implab;
2 using System; 2 using System;
3 using System.Collections.Generic;
4 using System.Linq;
5 using System.Text;
6 using System.Threading.Tasks;
7 3
8 namespace Implab.Parsing { 4 namespace Implab.Parsing {
9 public class EDFADefinition<T> : DFADefinitionBase where T : struct, IConvertible { 5 public class EDFADefinition<T> : DFADefinitionBase where T : struct, IConvertible {
10 EnumAlphabet<T> m_alphabet; 6 readonly EnumAlphabet<T> m_alphabet;
11 7
12 public EnumAlphabet<T> Alphabet { 8 public EnumAlphabet<T> Alphabet {
13 get { return m_alphabet; } 9 get { return m_alphabet; }
14 } 10 }
15 11
16 public EDFADefinition(EnumAlphabet<T> alphabet) 12 public EDFADefinition(EnumAlphabet<T> alphabet) {
17 : base() {
18 Safe.ArgumentNotNull(alphabet, "alphabet"); 13 Safe.ArgumentNotNull(alphabet, "alphabet");
19 m_alphabet = alphabet; 14 m_alphabet = alphabet;
20 } 15 }
21 16
22 public override int AlphabetSize { 17 public override int AlphabetSize {