mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Using lexer (development) [#CLICKHOUSE-2].
This commit is contained in:
parent
4255b81f3f
commit
4562785c2a
@ -403,6 +403,8 @@ bool ParserNumber::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
|
||||
++pos;
|
||||
negative = true;
|
||||
}
|
||||
else if (pos->type == TokenType::Plus) /// Leading plus is simply ignored.
|
||||
++pos;
|
||||
|
||||
Field res;
|
||||
|
||||
|
@ -13,7 +13,7 @@ enum class TokenType
|
||||
|
||||
BareWord, /// Either keyword (SELECT) or identifier (column)
|
||||
|
||||
Number, /// Always non-negative. 123 or something like 123.456e12, 0x123p12
|
||||
Number, /// Always non-negative. No leading plus. 123 or something like 123.456e12, 0x123p12
|
||||
StringLiteral, /// 'hello word', 'hello''word', 'hello\'word\\'
|
||||
|
||||
QuotedIdentifier, /// "x", `x`
|
||||
|
Loading…
Reference in New Issue
Block a user