mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Parser simplification (incomplete)
This commit is contained in:
parent
1f82ab2382
commit
6f40d3a342
File diff suppressed because it is too large
Load Diff
@ -228,63 +228,6 @@ protected:
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
ASTPtr createFunctionCast(const ASTPtr & expr_ast, const ASTPtr & type_ast);
|
||||
class ParserCastAsExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "CAST AS expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserSubstringExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "SUBSTRING expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserTrimExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "TRIM expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserLeftExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "LEFT expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserRightExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "RIGHT expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserExtractExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "EXTRACT expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserDateAddExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "DATE_ADD expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
class ParserDateDiffExpression : public IParserBase
|
||||
{
|
||||
protected:
|
||||
const char * getName() const override { return "DATE_DIFF expression"; }
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
/** NULL literal.
|
||||
*/
|
||||
class ParserNull : public IParserBase
|
||||
@ -535,4 +478,6 @@ protected:
|
||||
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
||||
};
|
||||
|
||||
ASTPtr createFunctionCast(const ASTPtr & expr_ast, const ASTPtr & type_ast);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user