ClickHouse/src/Parsers/parseIdentifierOrStringLiteral.h
2024-02-21 17:56:36 +01:00

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);
}