Crates.io | cttt-parser |
lib.rs | cttt-parser |
version | 0.1.2 |
source | src |
created_at | 2023-08-10 05:47:37.705867 |
updated_at | 2023-08-10 07:26:13.05892 |
description | Parser for github.com/change-this-then-that |
homepage | |
repository | |
max_upload_size | |
id | 940628 |
size | 36,797 |
A parser for the Change This Then That.
Basic usage:
let s = "
// @cttt.name(foo)
let x = 1;
// @cttt.change(bar)
// @cttt.name(bar)
let y = 2;
// @cttt.change(foo)
";
println!("{:#?}", cttt_parser::parse(s));
Strict usage:
let s = "
// @cttt.name(foo)
let x = 1;
// @cttt.change(bar)
// @cttt.name(bar)
let y = 2;
// @cttt.change(foo)
";
println!(
"{:#?}",
cttt_parser::parse_strict(s, vec!["name".to_string(), "change".to_string()])
);