예제 #1
0
        private Token MakeToken(TokenKind kind, string lexeme)
        {
            var tokenEnd = _reader.CurrentSpan();
            var span     = TokenStart.Combine(tokenEnd);

            return(new Token(kind, lexeme, span, TokenCount++));
        }