More on todos. Nothing important.

functions
Justyna Ilczuk 2012-12-17 09:37:45 +01:00
parent 3ff8c49cb7
commit 46ac5b352b
13 changed files with 19 additions and 18 deletions

View File

@ -16,7 +16,8 @@ AST::AST() {
void AST::delete_all_children()
{
//TODO perform deleting
delete root;
root = NULL;
}
AST::~AST() {

View File

@ -12,6 +12,6 @@ ASTNode::ASTNode() {
}
ASTNode::~ASTNode() {
// TODO Auto-generated destructor stub
// Do nothing
}

View File

@ -8,11 +8,11 @@
#include "ASTStatement.h"
ASTStatement::ASTStatement() {
// TODO Auto-generated constructor stub
// Do nothing
}
ASTStatement::~ASTStatement() {
// TODO Auto-generated destructor stub
// Do nothing
}

View File

@ -53,7 +53,6 @@ void Assignment::add_lvalue(ASTExpression * left)
void Assignment::add_rvalue(ASTExpression * right)
{
//TODO should note something if it doesn't look like that. Other possibilities like
if(children.size()==1)
children.push_back(right);
else if(children.size()>1)

View File

@ -99,8 +99,7 @@ BasicExpression::BasicExpression(ASTNode * parent) {
}
BasicExpression::~BasicExpression() {
// TODO Auto-generated destructor stub
// TODO free children memory
//Do nothing
}

View File

@ -12,7 +12,11 @@ BasicStatement::BasicStatement(ASTNode * parent) {
}
BasicStatement::~BasicStatement() {
// TODO Auto-generated destructor stub
for(auto it = children.begin(); it != children.end(); )
{
delete *it;
it = children.erase(it);
}
}
void BasicStatement::add_expression(ASTExpression * expr)

View File

@ -14,7 +14,7 @@ ConstantExpression::ConstantExpression(ASTNode * parent) {
}
ConstantExpression::~ConstantExpression() {
// TODO Auto-generated destructor stub
// Do nothing
}
ConstantExpression::ConstantExpression(ASTNode * parent, SenchaObject value, std::string name)

View File

@ -8,7 +8,7 @@
#include "ProgramNode.h"
ProgramNode::ProgramNode() {
// TODO Auto-generated constructor stub
//Do nothing
}

View File

@ -12,7 +12,7 @@ SenchaObject::SenchaObject() {
}
SenchaObject::~SenchaObject() {
// TODO Auto-generated destructor stub
// Do nothing
}
bool SenchaObject::is_true()

View File

@ -8,12 +8,10 @@
#include "Context.h"
Context::Context() {
// TODO Auto-generated constructor stub
index = 0;
}
Context::~Context() {
// TODO Auto-generated destructor stub
}
void Context::register_function(std::string name, PointerToNativeFunction f)

View File

@ -9,12 +9,12 @@
TestLexer::TestLexer() {
// TODO Auto-generated constructor stub
//Do nothing
}
TestLexer::~TestLexer() {
// TODO Auto-generated destructor stub
// Do nothing
}
std::string TestLexer::all_tests()

View File

@ -17,7 +17,7 @@ TestSuite::TestSuite() {
TestSuite::~TestSuite() {
// TODO Auto-generated destructor stub
//Do nothing
}
std::string TestSuite::all_tests()

View File

@ -6,8 +6,8 @@
using namespace std;
typedef enum { t_invalid_token=0, t_symbol, t_integer, t_literal,
t_punctuation, t_keyword, t_operator, t_float } type_of_token; //t_float not implemented
//TODO implement t_float in lexer
t_punctuation, t_keyword, t_operator, t_float } type_of_token;
class Token