Start of new ANTLR4 based parser.

Very simple tests pass.
This commit is contained in:
eelke 2022-04-03 12:27:35 +02:00
parent 03b4194193
commit fbbe832a05
44 changed files with 860 additions and 8 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include "Node.h"
#include <memory>
#include <string>
namespace sqlast {
class Expression;
class SelectItem : public Node
{
public:
explicit SelectItem(std::unique_ptr<sqlast::Expression> expr);
Expression& GetExpression() { return *expression; }
void SetAlias(const std::string &alias);
std::string GetAlias() const { return alias; }
private:
std::unique_ptr<Expression> expression;
std::string alias;
};
}