Пример #1
0
        protected List <IToken> NextTokens(int lexerPathId)
        {
            List <IToken> tokenList = new List <IToken>();
            LexerPath     lexerPath;

            if (LexerPathMap.TryGetValue(lexerPathId, out lexerPath))
            {
                NextTokens(lexerPath, tokenList);
            }
            else
            {
                throw new StepLexerException(string.Format("LexerPath with id {0} does not exist.", lexerPathId));
            }
            return(tokenList);
        }