static-regular-grammar 2.0.2

Derive macro for static regular grammar
Documentation
use static_regular_grammar::RegularGrammar;

/// Test
///
/// # Grammar
///
/// ```abnf
/// test = "%" / "$"
/// ```
#[derive(RegularGrammar, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[grammar(
	name = "Test",
	sized(TestBuf, derive(Debug, Display, PartialEq, Eq, PartialOrd, Ord, Hash))
)]
pub struct Test(str);

fn main() {
	Test::new("$").unwrap();
}