/*
 * BasicStatement.cpp
 *
 *  Created on: Dec 5, 2012
 *      Author: attero
 */

#include "BasicStatement.h"

BasicStatement::BasicStatement(ASTNode * parent) {
	this->parent = parent;
}

BasicStatement::~BasicStatement() {
	// TODO Auto-generated destructor stub
}

void BasicStatement::add_expression(ASTExpression * expr)
{
	children.push_back(expr);
}

std::string BasicStatement::debug()
{
	return "Basic statement with expression:\n" + children[0]->debug() + "\n;\n";
}

void BasicStatement::execute()
{
	children[0]->execute() ;
}
