You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release makes regexen like `λ+` match `"λλλλ"`. It also adds high-
byte character classes, using the `\x` escaping syntax, which, with some
care, allows construction of useful character sets of _reasonably_ dense
codepoints.
Copy file name to clipboardExpand all lines: README.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Finding myself in need of a regular expressions library for a Zig project, and needing it to build regex at runtime, not just comptime, I ended up speedrunning a little library for just that purpose.
4
4
5
-
This is that library. It's a simple bytecode-based Commander Pike-style VM. Just under 1500 lines of load-bearing code, no dependencies other than `std`.
5
+
This is that library. It's a simple bytecode-based Commander Pike-style VM. Under 2000 lines of load-bearing code, no dependencies other than `std`.
6
6
7
7
The provided Regex type allows 64 'operations' and 8 unique ASCII character sets. If you would like more, or less, you can call `SizedRegex(num_ops, num_sets)` to customize the type.
8
8
@@ -11,7 +11,7 @@ The provided Regex type allows 64 'operations' and 8 unique ASCII character sets
11
11
Drop the file into your project, or use the Zig build system:
0 commit comments