예제 #1
0
        private Token ConsumeMultiCharToken(char currentCharacter, Func <string> contentFunc)
        {
            Token token = TokenFactory.Create(currentCharacter);

            return(initToken(token, contentFunc));
        }
예제 #2
0
        private Token ConsumeToken(TokenType type, Func <string> contentFunc)
        {
            Token token = TokenFactory.Create(type);

            return(initToken(token, contentFunc));
        }