From 62126fd5070a88488fe8375105863f500b43fb7c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 3 Aug 2023 20:56:59 +0100 Subject: remove hardcoded bytecode test --- com.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'com.c') diff --git a/com.c b/com.c index f7c7f2d..dc458f9 100644 --- a/com.c +++ b/com.c @@ -42,9 +42,6 @@ static void compile_node(Chunk *ch, AstNode a) { } - - - int main() { Chunk ch = chunk_new(); AstNode an = read(); @@ -53,18 +50,6 @@ int main() { chunk_wbc(&ch, OP_PRINT); chunk_wbc(&ch, OP_RET); - - // chunk_wbc(&ch, OP_LOADK); - // chunk_wbc(&ch, chunk_wconst(&ch, VAL_NUM(5.0))); - // chunk_wbc(&ch, OP_LOADK); - // chunk_wbc(&ch, chunk_wconst(&ch, VAL_NUM(10.0))); - // chunk_wbc(&ch, OP_LOADK); - // chunk_wbc(&ch, chunk_wconst(&ch, VAL_NUM(2.0))); - // chunk_wbc(&ch, OP_MUL); - // chunk_wbc(&ch, OP_ADD); - // chunk_wbc(&ch, OP_PRINT); - // chunk_wbc(&ch, OP_RET); - runvm(&ch); } -- cgit v1.2.3