More on todos. Nothing important.
parent
3ff8c49cb7
commit
46ac5b352b
|
@ -16,7 +16,8 @@ AST::AST() {
|
|||
|
||||
void AST::delete_all_children()
|
||||
{
|
||||
//TODO perform deleting
|
||||
delete root;
|
||||
root = NULL;
|
||||
}
|
||||
|
||||
AST::~AST() {
|
||||
|
|
|
@ -12,6 +12,6 @@ ASTNode::ASTNode() {
|
|||
}
|
||||
|
||||
ASTNode::~ASTNode() {
|
||||
// TODO Auto-generated destructor stub
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -99,8 +99,7 @@ BasicExpression::BasicExpression(ASTNode * parent) {
|
|||
}
|
||||
|
||||
BasicExpression::~BasicExpression() {
|
||||
// TODO Auto-generated destructor stub
|
||||
// TODO free children memory
|
||||
//Do nothing
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "ProgramNode.h"
|
||||
|
||||
ProgramNode::ProgramNode() {
|
||||
// TODO Auto-generated constructor stub
|
||||
//Do nothing
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ SenchaObject::SenchaObject() {
|
|||
}
|
||||
|
||||
SenchaObject::~SenchaObject() {
|
||||
// TODO Auto-generated destructor stub
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
bool SenchaObject::is_true()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -17,7 +17,7 @@ TestSuite::TestSuite() {
|
|||
|
||||
|
||||
TestSuite::~TestSuite() {
|
||||
// TODO Auto-generated destructor stub
|
||||
//Do nothing
|
||||
}
|
||||
|
||||
std::string TestSuite::all_tests()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue