Exemple #1
0
 public StateList(StateList copy) : this()
 {
     foreach (State state in copy.GetList())
     {
         list.Add(state);
     }
 }
Exemple #2
0
 public void Add(StateList stateList)
 {
     if (stateList == null)
     {
         return;
     }
     foreach (State state in stateList.GetList())
     {
         Add(state);
     }
 }
Exemple #3
0
        private void DoEpsilon()
        {
            int stateListSize;

            do
            {
                stateListSize = currentStates.GetSize();
                StateList backUpList = new StateList(currentStates);
                foreach (State state in backUpList.GetList())
                {
                    currentStates.Add(state.Get('ε'));
                }
            } while (stateListSize != currentStates.GetSize());
        }