summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-21 16:21:49 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-21 16:21:49 +0100
commit88ccccc4fe1afdaf287327376c72d66db949255b (patch)
tree0a02394dadf49ff42cbffef7b91d4054fce4ad43
parent7ac6ae1c224f8ba04e6769f8dbf6fba6881bcaf7 (diff)
downloadsencha-lang-88ccccc4fe1afdaf287327376c72d66db949255b.tar.gz
sencha-lang-88ccccc4fe1afdaf287327376c72d66db949255b.tar.bz2
sencha-lang-88ccccc4fe1afdaf287327376c72d66db949255b.tar.xz
sencha-lang-88ccccc4fe1afdaf287327376c72d66db949255b.zip
Small amends.
-rw-r--r--Sencha-lang/AST/BasicExpression.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Sencha-lang/AST/BasicExpression.h b/Sencha-lang/AST/BasicExpression.h
index cdb0b68..505b045 100644
--- a/Sencha-lang/AST/BasicExpression.h
+++ b/Sencha-lang/AST/BasicExpression.h
@@ -12,22 +12,23 @@
class BasicExpression : public ASTExpression {
public:
- 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();
virtual void execute_quietly();
-
+ std::string get_operator() { return oper; }
std::string debug() ;
virtual void accept(Visitor * visitor);
BasicExpression(ASTNode * parent);
virtual ~BasicExpression();
+
+private:
+ bool children_set;
+ std::string oper;
};
#endif /* BASICEXPRESSION_H_ */