2013-06-02 09:47:27 +02:00
|
|
|
/* The scully programming language.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) Peter Dahlberg, Markus Hauschild and Florian Sattler, 2013.
|
|
|
|
|
* Licensed under the GNU GPL v2.
|
|
|
|
|
*/
|
|
|
|
|
|
2013-06-01 02:41:15 +02:00
|
|
|
#ifndef RETURNSTATEMENT_H
|
|
|
|
|
#define RETURNSTATEMENT_H
|
|
|
|
|
|
|
|
|
|
#include "AST/Statement.h"
|
|
|
|
|
#include "AST/Expression.h"
|
|
|
|
|
|
|
|
|
|
class ReturnStatement : public Statement {
|
|
|
|
|
public:
|
|
|
|
|
ReturnStatement(Expression* expr);
|
|
|
|
|
virtual ~ReturnStatement();
|
|
|
|
|
virtual void accept(ASTVisitor *visitor);
|
|
|
|
|
Expression* getExpr();
|
|
|
|
|
private:
|
|
|
|
|
Expression* expr_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // RETURNSTATEMENT_H
|