removed Statement.cpp

This commit is contained in:
Pedro 2014-10-24 16:51:49 +02:00
parent e24a2ae88d
commit f0bb8592cc
3 changed files with 3 additions and 18 deletions

View File

@ -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

View File

@ -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) {
};

View File

@ -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;