diff options
Diffstat (limited to 'Sencha-lang/AST/UnaryExpression.h')
-rw-r--r-- | Sencha-lang/AST/UnaryExpression.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Sencha-lang/AST/UnaryExpression.h b/Sencha-lang/AST/UnaryExpression.h new file mode 100644 index 0000000..7511d36 --- /dev/null +++ b/Sencha-lang/AST/UnaryExpression.h @@ -0,0 +1,28 @@ +/* + * UnaryExpression.h + * + * Created on: Jan 1, 2013 + * Author: att + */ + +#ifndef UNARYEXPRESSION_H_ +#define UNARYEXPRESSION_H_ + +#include "ASTExpression.h" + +class UnaryExpression: public ASTExpression { +public: + + std::string oper; + std::string get_operator() { return oper; } + virtual void accept(Visitor * visitor) { visitor->visit(this); } + + virtual SenchaObject execute(); + virtual SenchaObject evaluate(); + + UnaryExpression(ASTNode * argument, std::string oper); + UnaryExpression(); + virtual ~UnaryExpression(); +}; + +#endif /* UNARYEXPRESSION_H_ */ |