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

sycer-dev/kwp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages