diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-01-24 04:22:47 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-01-24 04:22:47 +0330 |
commit | 6a2b633d6fdc10ffb496f90912f57ec72daf25f6 (patch) | |
tree | 0aff0ac51f69ed0ce89f5671cf524bc1c8800d01 /src/compiler/code-generator.c | |
parent | 5d46c19b25a05a289ccecfa38bc0be849af87877 (diff) |
some clean up
Diffstat (limited to 'src/compiler/code-generator.c')
-rw-r--r-- | src/compiler/code-generator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/code-generator.c b/src/compiler/code-generator.c index 932202a..035a471 100644 --- a/src/compiler/code-generator.c +++ b/src/compiler/code-generator.c @@ -63,6 +63,8 @@ CodeGeneratorCodes *codeGenerator(AstTreeRoot *astTreeRoot) { codes, createGenerateCode(NULL, NULL, CODE_GENERATOR_INSTRUCTION_PRINT)); continue; + case AST_TREE_TOKEN_TYPE_FUNCTION: + case AST_TREE_TOKEN_TYPE_VOID: case AST_TREE_TOKEN_NONE: } printLog("Bad token %d", variable->value->token); @@ -85,6 +87,8 @@ bool codeGeneratorAstTreeFunction(char *label_begin, char *label_end, CODE_GENERATOR_INSTRUCTION_PRINT)); goto OK; case AST_TREE_TOKEN_FUNCTION: + case AST_TREE_TOKEN_TYPE_FUNCTION: + case AST_TREE_TOKEN_TYPE_VOID: case AST_TREE_TOKEN_NONE: } printLog("Bad token %d", tree.token); |