This commit is contained in:
2013-06-01 01:22:04 +02:00
parent 04bced0f6f
commit a67e369e00
2 changed files with 52 additions and 0 deletions

26
src/AST/BinOp.cpp Normal file
View File

@@ -0,0 +1,26 @@
#include "AST/BinOp.h"
#include "AST/ASTVisitor.h"
BinOp::BinOp(Expression *leftExp, std::string op, Expression *rightExp) :
leftExp_(leftExp), op_(op), rightExp_(rightExp) {
}
BinOp::~BinOp() {
//
}
std::string BinOp::getOp() {
return op_;
}
Expression* BinOp::getLeftExp() {
return leftExp_;
}
Expression* BinOp::getRightExp() {
return rightExp_;
}
void BinOp::accept(ASTVisitor* visitor) {
visitor->visit(this);
}