File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,15 +230,16 @@ static void runFile(const char *path) {
230230
231231 // --- Pipeline Step 3: Bytecode Gen & Execution ---
232232 // Use interpretAST to handle bytecode gen and execution properly using ObjFunction
233- printf ("Executing...\n" );
233+ // printf("Executing...\n");
234234 // Use interpretAST to handle bytecode gen and execution properly using ObjFunction
235235 // printf("Executing...\n");
236236 // printf("DEBUG: Calling interpretAST from main...\n");
237237 InterpretResult result = interpretAST (& vm , statements );
238238 // printf("DEBUG: Returned from interpretAST.\n");
239239
240240 if (result != INTERPRET_OK ) {
241- fprintf (stderr , "Execution Failed.\n" );
241+ // fprintf(stderr, "Execution Failed.\n");
242+ exit (70 );
242243 }
243244
244245 // --- Pipeline Step 4: LLVM CodeGen (Optional/Future) ---
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ extern Value native_clock(int argCount, Value* args);
3434static Value native_len (int argCount , Value * args ) {
3535 if (argCount < 1 ) return NUMBER_VAL (0 );
3636 if (IS_STRING (args [0 ])) return NUMBER_VAL ((double )AS_STRING (args [0 ])-> length );
37- if (IS_STRING (args [0 ])) return NUMBER_VAL ((double )AS_STRING (args [0 ])-> length );
3837 if (IS_LIST (args [0 ])) {
3938 return NUMBER_VAL ((double )AS_LIST (args [0 ])-> count );
4039 }
You can’t perform that action at this time.
0 commit comments