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

33 lines
649 B
C++

/* The scully programming language.
*
* Copyright (c) Peter Dahlberg, Markus Hauschild and Florian Sattler, 2013.
* Licensed under the GNU GPL v2.
*/
#ifndef BINOPEXPRESSION_H
#define BINOPEXPRESSION_H
#include "AST/Expression.h"
#include "AST/BinOp.h"
class BinOpExpression : public Expression {
public:
BinOpExpression(Expression* leftExp, BinOp op, Expression* rightExp);
virtual ~BinOpExpression();
BinOp getOp();
Expression* getLeftExp();
Expression* getRightExp();
virtual void accept(ASTVisitor* visitor);
private:
BinOp op_;
Expression* leftExp_;
Expression* rightExp_;
};
#endif // BINOPEXPRESSION_H