summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/PostfixExpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/AST/PostfixExpression.cpp')
-rw-r--r--Sencha-lang/AST/PostfixExpression.cpp36
1 files changed, 35 insertions, 1 deletions
diff --git a/Sencha-lang/AST/PostfixExpression.cpp b/Sencha-lang/AST/PostfixExpression.cpp
index 4ceb6b4..82876cd 100644
--- a/Sencha-lang/AST/PostfixExpression.cpp
+++ b/Sencha-lang/AST/PostfixExpression.cpp
@@ -7,8 +7,11 @@
#include "PostfixExpression.h"
-PostfixExpression::PostfixExpression() {
+PostfixExpression::PostfixExpression(ASTNode * parent) {
// TODO Auto-generated constructor stub
+ this->parent = parent;
+ head_set = false;
+ body_set = false;
}
@@ -16,3 +19,34 @@ PostfixExpression::~PostfixExpression() {
// TODO Auto-generated destructor stub
}
+
+void PostfixExpression::set_head(ASTExpression * expression)
+{
+ //How should it look like?
+ head_set = true;
+}
+
+void PostfixExpression::add_argument(ASTExpression * expression)
+{
+ arguments.push_back(expression);
+}
+
+void PostfixExpression::set_body(ASTStatement * statement)
+{
+ children.push_back(statement);
+ body_set = true;
+}
+
+SenchaObject PostfixExpression::evaluate()
+{
+ return SenchaObject();
+}
+
+void PostfixExpression::execute() { evaluate(); }
+
+
+
+std::string PostfixExpression::debug()
+{
+ return "Postfix expression tadadah!";
+}