also looking at this
Port to latest zig-master
#2
53 files
+1149
-1017
| @@ -4,7 +4,7 @@ const debug = .debug; | ||
| 4 | 4 | const Parser = .parser.Parser; |
| 5 | 5 | const Optimizer = .optimizer.Optimizer; |
| 6 | 6 | |
| 7 | pub fn main() !void { | |
| 7 | pub fn main(init: std.process.Init) !void { | |
| 8 | 8 | var gpa = std.heap.GeneralPurposeAllocator(.{}){}; |
| 9 | 9 | defer _ = gpa.deinit(); |
| 10 | 10 | const allocator = gpa.allocator(); |
| @@ -25,7 +25,7 @@ pub fn main() !void { | ||
| 25 | 25 | std.debug.print("───────────────────────────────────────────────\n", .{}); |
| 26 | 26 | |
| 27 | 27 | // Example 1: Show optimization info |
| 28 | var regex = Regex.compile(allocator, pattern) catch |err| { | |
| 28 | var regex = Regex.compile(allocator,init.io, pattern) catch |err| { | |
| 29 | 29 | std.debug.print(" ❌ Compilation error: {}\n\n", .{err}); |
| 30 | 30 | continue; |
| 31 | 31 | }; |
| @@ -88,7 +88,7 @@ pub fn main() !void { | ||
| 88 | 88 | std.debug.print("───────────────────────────────────────────────\n", .{}); |
| 89 | 89 | |
| 90 | 90 | const test_pattern = "hello.*world"; |
| 91 | var test_regex = try Regex.compile(allocator, test_pattern); | |
| 91 | var test_regex = try Regex.compile(allocator,init.io, test_pattern); | |
| 92 | 92 | defer test_regex.deinit(); |
| 93 | 93 | |
| 94 | 94 | const test_inputs = [_][]const u8{ |