extern crate peg_syntax_ext;
use peg_syntax_ext::peg;

peg!{memo r#"

#[cache]
rule -> &'input str
    = s:$([a-z]+) { s }

#[pub]
parse
    = rule '+' rule { () }
    / rule ' ' rule { () }

"#}

#[test]
fn main() {
	assert_eq!(memo::parse("abc zzz"), Ok(()));
}
