1 2 3 4 5 6 7 8 9 10 11 12
use peg::parser; parser! { pub grammar g() for str { pub rule r#break() = "foo" } } #[test] fn main() { assert_eq!(g::r#break("foo"), Ok(())); }