diff options
-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); } |