Some work on parser, not used yet.
This commit is contained in:
parent
3b482c1c73
commit
39ac8ef02d
5 changed files with 50 additions and 9 deletions
|
|
@ -2,16 +2,19 @@
|
|||
#include "SqlAstSelectList.h"
|
||||
#include "SqlParser.h"
|
||||
|
||||
using namespace SqlAst;
|
||||
namespace SqlAst {
|
||||
|
||||
|
||||
std::shared_ptr<SqlAst::Select> parseSelect(SqlParser &parser)
|
||||
{
|
||||
std::shared_ptr<SqlAst::Select> ast_select = std::make_shared<SqlAst::Select>();
|
||||
auto ast_select = std::make_shared<SqlAst::Select>();
|
||||
// parse select list of expression + aliasses, required
|
||||
auto select_list = parseSelectList(parser);
|
||||
ast_select->setSelectList(select_list);
|
||||
// auto select_list = parseSelectList(parser);
|
||||
// ast_select->setSelectList(select_list);
|
||||
|
||||
// parse optional from list
|
||||
|
||||
return ast_select;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue