StatementList

This commit is contained in:
2013-06-01 02:16:34 +02:00
parent b45834151b
commit deab2d7dbc
5 changed files with 51 additions and 8 deletions

22
src/AST/StatementList.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include "AST/StatementList.h"
#include "AST/ASTVisitor.h"
StatementList::StatementList() {
//
}
StatementList::~StatementList() {
//
}
void StatementList::accept(ASTVisitor* visitor) {
visitor->visit(this);
}
void StatementList::addStatement(Statement* statement) {
statements_.push_back(statement);
}
std::vector<Statement*> StatementList::getStatements() {
return statements_;
}