From 185380b2c089f302d02fcb5d52a62932ae91bcf8 Mon Sep 17 00:00:00 2001 From: CPunch Date: Tue, 3 Nov 2020 22:19:48 -0600 Subject: [PATCH] removed unused code --- src/main.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/main.c b/src/main.c index a923dc8..28db1ed 100644 --- a/src/main.c +++ b/src/main.c @@ -98,9 +98,6 @@ static void runFile(const char* fileName) { } int main(int argc, const char *argv[]) { - - //interpret("\"hello world!\""); - if (argc == 1) { repl(); } else if (argc >= 2) { // they passed a file (or more lol) @@ -109,39 +106,5 @@ int main(int argc, const char *argv[]) { } } - - /* - CChunk *chnk = newChunk(1); - CState *state = cosmoV_newState(); - - // adds our constant values - int constIndx = addConstant(chnk, cosmoV_newNumber(2)); - int const2Indx = addConstant(chnk, cosmoV_newNumber(4)); - - // pushes constant to the stack - writeu8Chunk(chnk, OP_LOADCONST, 1); - writeu16Chunk(chnk, constIndx, 1); - - writeu8Chunk(chnk, OP_LOADCONST, 1); - writeu16Chunk(chnk, const2Indx, 1); - - // pops 2 values off the stack, multiples them together and pushes the result - writeu8Chunk(chnk, OP_MULT, 1); - - // pops a value off the stack, negates it, and pushes the result - writeu8Chunk(chnk, OP_NEGATE, 2); - - // prints to the console - writeu8Chunk(chnk, OP_RETURN, 2); - disasmChunk(chnk, "test"); - - // load chunk to the state & run it - cosmoV_loadChunk(state, chnk); - cosmoV_execute(state, 0); - - // clean up :) - freeChunk(chnk); - cosmoV_freeState(state);*/ - return 0; } \ No newline at end of file