#regex #dfa #regular #expression #foo

macro dfa-regex

Match regular expressions using a corresponding DFA

3 releases

0.0.3 May 26, 2024
0.0.2 May 25, 2024
0.0.1 May 24, 2024

#414 in Procedural macros

Download history 22/week @ 2024-05-31 7/week @ 2024-06-07 9/week @ 2024-07-05 1/week @ 2024-07-12

68 downloads per month

MIT license

18KB
462 lines

dfa-regex

Create a DFA from a regular expression and use it for matching strings.

Usage

use dfa_regex::regex;

regex!(Foo => "foo");

assert!(Foo::matches("foo"));
assert!(!Foo::matches("bar"));

Dependencies

~235–680KB
~16K SLoC