2013-06-01 02:27:01 +02:00
|
|
|
#ifndef SCOPE_H
|
|
|
|
|
#define SCOPE_H
|
|
|
|
|
|
|
|
|
|
#include "AST/Statement.h"
|
2013-06-01 02:29:23 +02:00
|
|
|
#include "AST/StatementList.h"
|
2013-06-01 02:27:01 +02:00
|
|
|
|
|
|
|
|
class Scope : public Statement {
|
|
|
|
|
public:
|
2013-06-01 02:29:23 +02:00
|
|
|
Scope(StatementList* sl);
|
2013-06-01 02:27:01 +02:00
|
|
|
virtual ~Scope();
|
|
|
|
|
|
|
|
|
|
virtual void accept(ASTVisitor* visitor);
|
|
|
|
|
|
2013-06-01 02:29:23 +02:00
|
|
|
StatementList* getSl();
|
2013-06-01 02:27:01 +02:00
|
|
|
private:
|
2013-06-01 02:29:23 +02:00
|
|
|
StatementList* sl_;
|
2013-06-01 02:27:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // SCOPE_H
|