summaryrefslogtreecommitdiff
path: root/chomp-macro/tests/sheep.rs
blob: 862e8106083577503f9499aec4e6bc19247e3195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
chomp_macro::nibble! {
    let opt(x) = _ | x;
    let plus(x) = [rec](x . opt(rec));
    match "ba" . plus("a");
}

#[test]
fn baa() {
    Ast::parse_str("baa").unwrap();
}

#[test]
fn baaaaaaaaaaaaaaa() {
    Ast::parse_str("baaaaaaaaaaaaaaa").unwrap();
}