sencha-lang/Sencha-lang/AST/PostfixExpression.cpp

47 lines
752 B
C++

/*
* PostfixExpression.cpp
*
* Created on: Dec 5, 2012
* Author: attero
*/
#include "PostfixExpression.h"
PostfixExpression::PostfixExpression(ASTNode * parent) {
this->parent = parent;
head_set = false;
body_set = false;
}
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);
}
SenchaObject PostfixExpression::evaluate()
{
return SenchaObject();
}
void PostfixExpression::execute() { evaluate(); }
std::string PostfixExpression::debug()
{
return "Postfix expression tadadah!";
}