Crates.io | kwp |
lib.rs | kwp |
version | 0.2.1 |
source | src |
created_at | 2020-08-15 04:09:38.825337 |
updated_at | 2020-08-17 00:05:02.906742 |
description | An input parser for positive and negative keywords input (e.g: +foo,-bar,+baz) |
homepage | |
repository | https://github.com/sycer-dev/kwp |
max_upload_size | |
id | 276893 |
size | 21,172 |
An input parser for positive and negative keywords input (e.g: +foo,-bar,+baz)
# within Cargo.toml
kwp = "0.2"
use kwp::{Parser, Prefixes};
fn main() {
let input = "+foo,-bar,+baz,-bak";
let parser = Parser::new(
&input,
Prefixes::default()
);
let res = parser.parse();
println!("{:#?}", res);
}