diff options
author | ubq323 <ubq323@ubq323.website> | 2023-08-03 20:56:59 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-08-03 20:56:59 +0100 |
commit | 62126fd5070a88488fe8375105863f500b43fb7c (patch) | |
tree | 9c5b475d0d61a4ff8b41c911de4df92cc60cd527 | |
parent | 44d10abf342137b303a1c79364631ddb2ada5cc3 (diff) |
remove hardcoded bytecode test
-rw-r--r-- | com.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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); } |