mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
20 lines
516 B
C++
20 lines
516 B
C++
#pragma once
|
|
|
|
#include <Core/Types.h>
|
|
#include <Parsers/IParser.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Parses a name of an object which could be written in the following forms:
|
|
* name / `name` / "name" (identifier) or 'name'.
|
|
* Note that empty strings are not allowed.
|
|
*/
|
|
bool parseIdentifierOrStringLiteral(IParser::Pos & pos, Expected & expected, String & result);
|
|
|
|
/** Parse a list of identifiers or string literals. */
|
|
bool parseIdentifiersOrStringLiterals(IParser::Pos & pos, Expected & expected, Strings & result);
|
|
|
|
}
|