BinOp -> BinOpExpression
This commit is contained in:
26
inc/AST/BinOpExpression.h
Normal file
26
inc/AST/BinOpExpression.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef BINOP_H
|
||||
#define BINOP_H
|
||||
|
||||
#include <string>
|
||||
#include "AST/Expression.h"
|
||||
|
||||
class BinOpExpression : public Expression {
|
||||
public:
|
||||
BinOpExpression(Expression* leftExp ,std::string op, Expression* rightExp);
|
||||
virtual ~BinOpExpression();
|
||||
|
||||
std::string getOp();
|
||||
Expression* getLeftExp();
|
||||
Expression* getRightExp();
|
||||
virtual void accept(ASTVisitor* visitor);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
std::string op_;
|
||||
Expression* leftExp_;
|
||||
Expression* rightExp_;
|
||||
|
||||
};
|
||||
|
||||
#endif // BINOP_H
|
||||
Reference in New Issue
Block a user