Comment tweaks

This commit is contained in:
2022-08-22 02:16:24 +01:00
parent df6bd58b1a
commit 9ac16f8e80
5 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -9,5 +9,4 @@ typedef struct {
extern KeywordType keywordTypes[];
//for debugging
char* findKeywordByType(TokenType type);

View File

@@ -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: