summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-08-03 20:56:59 +0100
committerubq323 <ubq323@ubq323.website>2023-08-03 20:56:59 +0100
commit62126fd5070a88488fe8375105863f500b43fb7c (patch)
tree9c5b475d0d61a4ff8b41c911de4df92cc60cd527
parent44d10abf342137b303a1c79364631ddb2ada5cc3 (diff)
remove hardcoded bytecode test
-rw-r--r--com.c15
1 files changed, 0 insertions, 15 deletions
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);
}