Skip to content

Create DFAs corresponding to regexes at compile time

License

Notifications You must be signed in to change notification settings

mrvillage/dfa-regex

Repository files navigation

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"));

About

Create DFAs corresponding to regexes at compile time

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages