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,24 @@
#include "StatementList.h"
#include "Statement.h"
using namespace sqlast;
StatementList::StatementList()
{}
void StatementList::Add(std::unique_ptr<Statement> &&statement)
{
statements.push_back(std::move(statement));
}
Statement &StatementList::Get(int index)
{
return *statements[index];
}
int StatementList::Count() const
{
return static_cast<int>(statements.size());
}