Beispiel #1
0
        public ParsingObject Pop()
        {
            logger.Debug($"Pop {State}");
            _endIndex = Index;
            if (ParenthStack.Count != 0)
            {
                throw new Exception("Parenths error");
            }

            var oldObj = StateStack.Any() ? StateStack.Pop() : this;

            if (_important)
            {
                oldObj.TokenParameters.Add(this);
            }
            oldObj.Index = Index;
            return(oldObj);
        }