Formatting and add Scope
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "ConstantExpression.h"
|
||||
#include "IfStatement.h"
|
||||
#include "ParameterList.h"
|
||||
#include "Scope.h"
|
||||
#include "StatementList.h"
|
||||
#include "ValueList.h"
|
||||
#include "VariableDefinition.h"
|
||||
@@ -20,9 +21,10 @@ public:
|
||||
virtual void visit(ConstantExpression* e) = 0;
|
||||
virtual void visit(IfStatement* e) = 0;
|
||||
virtual void visit(ParameterList* e) = 0;
|
||||
virtual void visit(Scope* e) = 0;
|
||||
virtual void visit(StatementList* e) = 0;
|
||||
virtual void visit(ValueList* e) = 0;
|
||||
virtual void visit(VariableDefinition* e) = 0;
|
||||
virtual void visit(StatementList* e) = 0;
|
||||
};
|
||||
|
||||
#endif // ASTVISITOR_H
|
||||
|
||||
18
inc/AST/Scope.h
Normal file
18
inc/AST/Scope.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef SCOPE_H
|
||||
#define SCOPE_H
|
||||
|
||||
#include "AST/Statement.h"
|
||||
|
||||
class Scope : public Statement {
|
||||
public:
|
||||
Scope(Statement* stmt);
|
||||
virtual ~Scope();
|
||||
|
||||
virtual void accept(ASTVisitor* visitor);
|
||||
|
||||
Statement* getStmt();
|
||||
private:
|
||||
Statement* stmt_;
|
||||
};
|
||||
|
||||
#endif // SCOPE_H
|
||||
Reference in New Issue
Block a user