diff options
author | Justyna Ilczuk <justyna.ilczuk@gmail.com> | 2012-12-17 10:41:48 +0100 |
---|---|---|
committer | Justyna Ilczuk <justyna.ilczuk@gmail.com> | 2012-12-17 10:41:48 +0100 |
commit | b9d9788da24cea3d0e193ac318d07f6c8e1b54ab (patch) | |
tree | e26f3027b71af16aade5bf482caa3c33e5bc12c4 /Sencha-lang/AST/VariableExpression.h | |
parent | 46ac5b352b7668047c0ca19745f82b8dbd0c0270 (diff) | |
download | sencha-lang-b9d9788da24cea3d0e193ac318d07f6c8e1b54ab.tar.gz sencha-lang-b9d9788da24cea3d0e193ac318d07f6c8e1b54ab.tar.bz2 sencha-lang-b9d9788da24cea3d0e193ac318d07f6c8e1b54ab.tar.xz sencha-lang-b9d9788da24cea3d0e193ac318d07f6c8e1b54ab.zip |
New class for variables. It's much more appropriate than storing
variables in constant expression class isn't it?
Diffstat (limited to 'Sencha-lang/AST/VariableExpression.h')
-rw-r--r-- | Sencha-lang/AST/VariableExpression.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Sencha-lang/AST/VariableExpression.h b/Sencha-lang/AST/VariableExpression.h new file mode 100644 index 0000000..522b71b --- /dev/null +++ b/Sencha-lang/AST/VariableExpression.h @@ -0,0 +1,30 @@ +/* + * VariableExpression.h + * + * Created on: Dec 17, 2012 + * Author: att + */ + +#ifndef VARIABLEEXPRESSION_H_ +#define VARIABLEEXPRESSION_H_ +#include <iostream> +#include <string> +#include "../Context.h" +#include "ASTExpression.h" + +class VariableExpression: public ASTExpression { +public: + VariableExpression(); + VariableExpression(ASTNode * parent, Context * context, std::string name); + + Context * context; + std::string debug(); + std::string name; + + void execute(); + void execute_quietly(); + SenchaObject evaluate(); + virtual ~VariableExpression(); +}; + +#endif /* VARIABLEEXPRESSION_H_ */ |