sencha-lang/Sencha-lang/AST/BasicExpression.h

35 lines
611 B
C++

/*
* BasicExpression.h
*
* Created on: Dec 5, 2012
* Author: attero
*/
#ifndef BASICEXPRESSION_H_
#define BASICEXPRESSION_H_
#include "ASTExpression.h"
class BasicExpression : public ASTExpression {
public:
//TODO change oper to enum
std::string oper;
bool children_set;
void set_operator(std::string op);
void set_left_operand(ASTNode * left);
void set_right_operand(ASTNode * right);
virtual SenchaObject evaluate();
virtual void execute() { evaluate(); };
std::string debug() ;
BasicExpression(ASTNode * parent);
virtual ~BasicExpression();
};
#endif /* BASICEXPRESSION_H_ */