4 releases
0.2.1 | Aug 17, 2020 |
---|---|
0.2.0 | Aug 16, 2020 |
0.1.1 | Aug 15, 2020 |
0.1.0 | Aug 15, 2020 |
#12 in #keyword
9KB
152 lines
kw-parser
An input parser for positive and negative keywords input (e.g: +foo,-bar,+baz)
installation
# within Cargo.toml
kwp = "0.2"
example
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);
}
lib.rs
:
An input parser for positive and negative keywords input (e.g: +foo,-bar,+baz)
Getting Started
use kwp::{Parser, Prefixes};
use std::env;
fn main() {
let input = "+foo,-bar,+baz,-bak";
let parser = Parser::new(
&input,
Prefixes::default()
);
let resp = parser.parse();
println!("{:#?}", resp);
}