deleted unused files

This commit is contained in:
cozis
2022-08-13 20:08:42 +02:00
parent ed02bbc9be
commit 8565722bab
4 changed files with 8 additions and 26 deletions
+5 -16
View File
@@ -440,7 +440,7 @@ static void emitInstrForExprNode(CodegenContext *ctx, ExprNode *expr, Label *lab
ListExprNode *l = (ListExprNode*) expr;
Operand op;
op = (Operand) { .type = OPTP_INT, .as_int = l->itemc };
CodegenContext_EmitInstr(ctx, OPCODE_PUSHLST, &op, 1, expr->base.offset, expr->base.length);
@@ -495,21 +495,10 @@ static void emitInstrForExprNode(CodegenContext *ctx, ExprNode *expr, Label *lab
return;
}
case EXPR_NONE:
CodegenContext_EmitInstr(ctx, OPCODE_PUSHNNE, NULL, 0, expr->base.offset, expr->base.length);
return;
case EXPR_TRUE:
CodegenContext_EmitInstr(ctx, OPCODE_PUSHTRU, NULL, 0, expr->base.offset, expr->base.length);
return;
case EXPR_FALSE:
CodegenContext_EmitInstr(ctx, OPCODE_PUSHFLS, NULL, 0, expr->base.offset, expr->base.length);
return;
default:
UNREACHABLE;
break;
case EXPR_NONE: CodegenContext_EmitInstr(ctx, OPCODE_PUSHNNE, NULL, 0, expr->base.offset, expr->base.length); return;
case EXPR_TRUE: CodegenContext_EmitInstr(ctx, OPCODE_PUSHTRU, NULL, 0, expr->base.offset, expr->base.length); return;
case EXPR_FALSE: CodegenContext_EmitInstr(ctx, OPCODE_PUSHFLS, NULL, 0, expr->base.offset, expr->base.length); return;
default: UNREACHABLE; break;
}
}
View File
-8
View File
@@ -1,8 +0,0 @@
typedef struct NOJA_Executable NOJA_Executable;
char *NOJA_disassemble(NOJA_Executable *exe);
NOJA_Executable *NOJA_assembleString(const char *str);
NOJA_Executable *NOJA_assembleFile(const char *file);
NOJA_Executable *NOJA_compileString(const char *str);
NOJA_Executable *NOJA_compileFile(const char *file);
bool NOJA_compareExecutables(NOJA_Executable *exe1, NOJA_Executable *exe2);