summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/BasicExpression.h
blob: cf6d80e760eb5d470430f14df8ef631176f8212a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * BasicExpression.h
 *
 *  Created on: Dec 5, 2012
 *      Author: attero
 */

#ifndef BASICEXPRESSION_H_
#define BASICEXPRESSION_H_
#include "ASTExpression.h"
#include <string>

class BasicExpression : public ASTExpression {
public:
	//TODO change oper to enum
	std::string oper;
	ASTExpression * left;
	ASTExpression * right;

	void set_operator(std::string op);
	void set_left_operand(ASTNode * left);
	void set_right_operand(ASTNode * right);
	virtual int evaluate();

	BasicExpression();
	virtual ~BasicExpression();
};

#endif /* BASICEXPRESSION_H_ */