#regex #dfa #expression #regular #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

#589 in Procedural macros

Download history 2/week @ 2024-11-01 1/week @ 2024-11-08 10/week @ 2024-12-06 3/week @ 2024-12-13

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

~225–670KB
~16K SLoC