ReviewOS

also looking at this

zig-utils/zig-regex

Port to latest zig-master

#2
Closed armagidon-exception wants to merge main into main
53 files +1149 -1017
examples/debug_visualization.zigmodified+3-3
Changes to examples/debug_visualization.zig
@@ -4,7 +4,7 @@ const debug = .debug;
44const Parser = .parser.Parser;
55const Optimizer = .optimizer.Optimizer;
66
7pub fn main() !void {
7pub fn main(init: std.process.Init) !void {
88 var gpa = std.heap.GeneralPurposeAllocator(.{}){};
99 defer _ = gpa.deinit();
1010 const allocator = gpa.allocator();
@@ -25,7 +25,7 @@ pub fn main() !void {
2525 std.debug.print("───────────────────────────────────────────────\n", .{});
2626
2727 // 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| {
2929 std.debug.print(" ❌ Compilation error: {}\n\n", .{err});
3030 continue;
3131 };
@@ -88,7 +88,7 @@ pub fn main() !void {
8888 std.debug.print("───────────────────────────────────────────────\n", .{});
8989
9090 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);
9292 defer test_regex.deinit();
9393
9494 const test_inputs = [_][]const u8{