diff options
author | Greg Brown <gmb60@cam.ac.uk> | 2021-05-06 19:40:59 +0100 |
---|---|---|
committer | Greg Brown <gmb60@cam.ac.uk> | 2021-05-06 19:40:59 +0100 |
commit | dfc08ff2c6580bbeb3951b223e0332546ba3b0d9 (patch) | |
tree | 60597dd9492b9c2dfa10ea610289f143dd3e41b7 /chomp-macro/tests/ratata.rs | |
parent | ef485d6f3e4df6e1a424ba3797388fa0bba6eb2e (diff) |
Introduce lambda expressions.
Diffstat (limited to 'chomp-macro/tests/ratata.rs')
-rw-r--r-- | chomp-macro/tests/ratata.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chomp-macro/tests/ratata.rs b/chomp-macro/tests/ratata.rs deleted file mode 100644 index 869ad61..0000000 --- a/chomp-macro/tests/ratata.rs +++ /dev/null @@ -1,15 +0,0 @@ -chomp_macro::nibble! { - let opt(x) = _ | x; - let plus(x) = [rec](x . opt(rec)); - match plus(("r" | "t") . "a"); -} - -#[test] -fn ratata_ratata() { - Ast::parse_str("ratata").unwrap(); -} - -#[test] -fn ratata_ratarataratatata() { - Ast::parse_str("ratarataratatata").unwrap(); -} |