예제 #1
0
#pragma warning restore S1144 // Unused private types or members should be removed

        private void DiscardToken()
        {
            _lookaheadFirst = _lookaheadSecond.Clone();

            if (_tokenSequence.Any())
            {
                _lookaheadSecond = _tokenSequence.Pop();
            }
            else
            {
                _lookaheadSecond = new MovieToken(TokenType.SequenceTerminator, string.Empty);
            }
        }
예제 #2
0
 private void PrepareLookaheads()
 {
     _lookaheadFirst  = _tokenSequence.Pop();
     _lookaheadSecond = _tokenSequence.Pop();
 }