removed Statement.cpp
This commit is contained in:
parent
e24a2ae88d
commit
f0bb8592cc
|
@ -4,7 +4,7 @@
|
||||||
PARSER = bison
|
PARSER = bison
|
||||||
|
|
||||||
|
|
||||||
LIB_FILES = $(PARSER)/$(PARSER)_parser.cpp $(PARSER)/flex_lexer.cpp $(PARSER)/SQLParser.cpp lib/Statement.cpp lib/Expr.cpp lib/sqlhelper.cpp
|
LIB_FILES = $(PARSER)/$(PARSER)_parser.cpp $(PARSER)/flex_lexer.cpp $(PARSER)/SQLParser.cpp lib/Expr.cpp lib/sqlhelper.cpp
|
||||||
|
|
||||||
TESTS_MAIN = sql_tests.cpp
|
TESTS_MAIN = sql_tests.cpp
|
||||||
TESTS_BIN = bin/tests
|
TESTS_BIN = bin/tests
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
/*
|
|
||||||
* Statement.cpp
|
|
||||||
* Implementation of functions used to build the syntax tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "Statement.h"
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
Statement::Statement(EStatementType type) : type(type) {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
SelectStatement::SelectStatement() : Statement(eSelect) {
|
|
||||||
|
|
||||||
};
|
|
|
@ -18,14 +18,14 @@ typedef enum {
|
||||||
|
|
||||||
|
|
||||||
struct Statement {
|
struct Statement {
|
||||||
Statement(EStatementType type);
|
Statement(EStatementType type) : type(type) {};
|
||||||
|
|
||||||
EStatementType type;
|
EStatementType type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct SelectStatement : Statement {
|
struct SelectStatement : Statement {
|
||||||
SelectStatement();
|
SelectStatement() : Statement(eSelect) {};
|
||||||
|
|
||||||
TableRef* from_table;
|
TableRef* from_table;
|
||||||
List<Expr*>* select_list;
|
List<Expr*>* select_list;
|
||||||
|
|
Loading…
Reference in New Issue