Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (23 loc) · 722 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 722 Bytes

kw-parser

An input parser for positive and negative keywords input (e.g: +foo,-bar,+baz)
Actions Crate Downloads

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);
}