Ejemplo n.º 1
0
 public void AddAlready()
 {
     addAlready = true;
     if (nextState == null)
     {
         MainReduction.Invoke();
     }
 }
Ejemplo n.º 2
0
        public void ReductionState(T token)
        {
            if (nextState.StateToken as object == token as object)
            {
                nextState = nextState.nextState;

                if (isFirst)
                {
                    if (EachReduction != null)
                    {
                        EachReduction.Invoke(token);
                    }
                    if (nextState == null && addAlready)
                    {
                        MainReduction.Invoke();
                    }
                }
            }
            else
            {
                nextState.ReductionState(token);
            }
        }