deleted unused files
This commit is contained in:
+3
-2
@@ -7,5 +7,6 @@ fun makeAdder(n) {
|
||||
|
||||
add10 = makeAdder(10);
|
||||
add20 = makeAdder(20);
|
||||
print(add10(1), '\n'); # 11
|
||||
print(add20(1), '\n'); # 21
|
||||
|
||||
assert(add10(1) == 11);
|
||||
assert(add20(1) == 21);
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user