Example #1
0
 private void State_34()
 {
     if (ActionStack.Last() != ActionStack.WrongLexem)
     {
         Action returnState = ActionStack.Pop();
         returnState();
     }
 }
Example #2
0
        public static Action Pop()
        {
            Action returnValue = ActionStack.Last();

            if (returnValue != ActionStack.WrongLexem)
            {
                _stack.RemoveAt(_stack.Count - 1);
            }
            return(returnValue);
        }