Skip to content

Commit

Permalink
Make Regex type pub
Browse files Browse the repository at this point in the history
  • Loading branch information
mnemnion committed Aug 6, 2024
1 parent 641ef3f commit 343f555
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The provided Regex type allows 64 'operations' and 8 unique ASCII character sets
Drop the file into your project, or use the Zig build system:

```zig
zig fetch --save "https://github.com/mnemnion/mvzr/archive/refs/tags/v0.2.0.tar.gz"
zig fetch --save "https://github.com/mnemnion/mvzr/archive/refs/tags/v0.2.1.tar.gz"
```

I'll do my best to keep that URL fresh, but it pays to check over here: ➔
Expand Down Expand Up @@ -82,4 +82,4 @@ const SlimmedDownRegex = mvzr.SizedRegex(ops, sets);

## Bugs

Fewer over time, I hope. This library isn't up to `0.1` yet, but the test suite never shrinks.
Fewer over time, I hope. The test suite never shrinks.
4 changes: 1 addition & 3 deletions src/mvzr.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ const std = @import("std");
const builtin = @import("builtin");
const assert = std.debug.assert;

const XXX = false;

// Zig is very particular about the types of shifts.
const one: u64 = 1;

Expand Down Expand Up @@ -94,7 +92,7 @@ const OpMatch = struct {
i: usize,
};

const Regex: type = SizedRegex(MAX_REGEX_OPS, MAX_CHAR_SETS);
pub const Regex: type = SizedRegex(MAX_REGEX_OPS, MAX_CHAR_SETS);

pub fn SizedRegex(ops: comptime_int, char_sets: comptime_int) type {
return struct {
Expand Down

0 comments on commit 343f555

Please sign in to comment.