diff --git a/docs/TODO.txt b/docs/TODO.txt index ac7c13d..ab42494 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -13,6 +13,7 @@ DONE: truthiness rethink DONE: string concat with the + operator DONE: increment & decrement operators +TODO: A way to check the type of a variable (typeOf keyword) TODO: a = b = c = 1; ? TODO: are compounds shallow or deep copies? TODO: functions, and all of their features diff --git a/source/compiler.c b/source/compiler.c index ed71dae..b9a7b2e 100644 --- a/source/compiler.c +++ b/source/compiler.c @@ -189,7 +189,6 @@ static void writeCompilerWithJumps(Compiler* compiler, Node* node, void* breakAd //determine node type switch(node->type) { - //TODO: more types, like variables, etc. case NODE_ERROR: { fprintf(stderr, ERROR "[Internal] NODE_ERROR encountered in writeCompilerWithJumps()\n" RESET); compiler->bytecode[compiler->count++] = OP_EOF; //1 byte diff --git a/source/interpreter.c b/source/interpreter.c index 26fc30a..3657d40 100644 --- a/source/interpreter.c +++ b/source/interpreter.c @@ -709,7 +709,7 @@ static void execInterpreter(Interpreter* interpreter) { interpreter->scope = popScope(interpreter->scope); break; - //TODO: custom type declarations + //TODO: custom type declarations? case OP_VAR_DECL: case OP_VAR_DECL_LONG: diff --git a/source/keyword_types.h b/source/keyword_types.h index 561dd6a..62bcaab 100644 --- a/source/keyword_types.h +++ b/source/keyword_types.h @@ -9,5 +9,4 @@ typedef struct { extern KeywordType keywordTypes[]; -//for debugging char* findKeywordByType(TokenType type); diff --git a/source/literal.c b/source/literal.c index 02492af..dace79b 100644 --- a/source/literal.c +++ b/source/literal.c @@ -248,7 +248,7 @@ void printLiteralCustom(Literal literal, void (printFn)(const char*)) { case LITERAL_FUNCTION: printToBuffer("function"); - //TODO + //TODO: how to print a function break; case LITERAL_IDENTIFIER: