summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/UnaryExpression.h
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-01 18:05:35 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-01 18:05:35 +0100
commitd65e408e5545963852df43cea93d9c82cd6b8f68 (patch)
tree33353b6c709b35322f127659cd21811ceea7279b /Sencha-lang/AST/UnaryExpression.h
parent4526de47cfbcc121e7bb09187b1641c060651322 (diff)
downloadsencha-lang-functions.tar.gz
sencha-lang-functions.tar.bz2
sencha-lang-functions.zip
Functions seem to work. Additionaly unary expressions :>.functions
Diffstat (limited to 'Sencha-lang/AST/UnaryExpression.h')
-rw-r--r--Sencha-lang/AST/UnaryExpression.h28
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_ */