Files
scully/inc/AST/ExpressionStatement.h
2013-06-02 09:47:27 +02:00

27 lines
534 B
C++

/* The scully programming language.
*
* Copyright (c) Peter Dahlberg, Markus Hauschild and Florian Sattler, 2013.
* Licensed under the GNU GPL v2.
*/
#ifndef EXPRESSIONSTATEMENT_H
#define EXPRESSIONSTATEMENT_H
#include "AST/Expression.h"
#include "AST/Statement.h"
class ExpressionStatement : public Statement
{
public:
ExpressionStatement(Expression* expr);
virtual ~ExpressionStatement();
virtual void accept(ASTVisitor* visitor);
Expression* getExpr();
private:
Expression* expr_;
};
#endif // EXPRESSIONSTATEMENT_H