6 releases

0.1.8 Jul 18, 2020
0.1.7 Jul 12, 2020

#9 in #true


Used in 2 crates

MIT/Apache

10KB
166 lines

string_parser

Rust string parsing crate

Doc : https://crates.io/crates/string-parser

Usage :

extern crate string_parser;
use string_parser::string_parser; 
 
fn end_filter(c : Vec<char>) -> bool{            
    if c.last().unwrap()== &'\'' {
        return true;
        }
    else {
        return false;
        }   
}
//can also use closures
let callback = |s : String| {
    assert_eq!(String::from("foo"), s); 
};

string_parser("./text", "'", end_filter, callback).unwrap();

lib.rs:

string_parser

string_parser is a crate that find tokens in source files and parse the inside

No runtime deps