Files
scully/inc/AST/ExpressionStatement.h

27 lines
534 B
C
Raw Normal View History

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:45:47 +02:00
#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