Formatting and add Scope

This commit is contained in:
Markus Hauschild
2013-06-01 02:27:01 +02:00
parent 2ebc62ad58
commit 8423949f42
5 changed files with 79 additions and 39 deletions

18
src/AST/Scope.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "AST/Scope.h"
#include "AST/ASTVisitor.h"
Scope::Scope(Statement* stmt) : stmt_(stmt) {
//
}
Scope::~Scope() {
//
}
void Scope::accept(ASTVisitor* visitor) {
visitor->visit(this);
}
Statement* Scope::getStmt() {
return stmt_;
}