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

28 lines
588 B
C++

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