X-Git-Url: https://git.ayoreis.com/zlox.git/blobdiff_plain/bebff07499e6ddad8a7b028e38db539372afc2f3:/Lox.zig..7b3023fd01ad1445eeccb48346217935d4e117f4:/lox.zig?ds=sidebyside diff --git a/Lox.zig b/lox.zig similarity index 99% rename from Lox.zig rename to lox.zig index 56a1572..ec4478b 100644 --- a/Lox.zig +++ b/lox.zig @@ -29,8 +29,10 @@ fn runFile(allocator: Allocator, path: []const u8) !u8 { const bytes = try std.fs.cwd().readFileAlloc(allocator, path, std.math.maxInt(usize)); defer allocator.free(bytes); try run(allocator, bytes); + // Indicate an error in the exit code. if (hadError) return 65; + return 0; }