mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Using lexer (incomplete) [#CLICKHOUSE-2].
This commit is contained in:
parent
1cd998a9bd
commit
02274ed511
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include <Parsers/ParserSelectQuery.h>
|
||||
#include <Parsers/ParserTablesInSelectQuery.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user