Using lexer (incomplete) [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-07-12 06:23:46 +03:00 committed by alexey-milovidov
parent 1cd998a9bd
commit 02274ed511
3 changed files with 2 additions and 2 deletions

View File

@ -151,6 +151,7 @@ bool ParserIdentifier::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
}
else if (pos->type == TokenType::BareWord)
{
++pos;
node = std::make_shared<ASTIdentifier>(StringRange(begin, pos), String(begin->begin, begin->end));
return true;
}

View File

@ -50,7 +50,7 @@ Token quotedString(const char *& pos, const char * const token_begin, const char
Token Lexer::nextToken()
{
if (pos >= end)
return Token(TokenType::EndOfStream, end, 0);
return Token(TokenType::EndOfStream, end, end);
const char * const token_begin = pos;

View File

@ -10,7 +10,6 @@
#include <Parsers/ParserSelectQuery.h>
#include <Parsers/ParserTablesInSelectQuery.h>
#include <iostream>
namespace DB
{