Rename the filter_parser crate into filter-parser

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Tamo
2021-11-09 16:16:28 +01:00
committed by Irevoire
parent 0ea0146e04
commit f28600031d
55 changed files with 5 additions and 8 deletions

16
filter-parser/src/main.rs Normal file
View File

@ -0,0 +1,16 @@
fn main() {
let input = std::env::args().nth(1).expect("You must provide a filter to test");
println!("Trying to execute the following filter:\n{}\n", input);
match filter_parser::FilterCondition::parse(&input) {
Ok(filter) => {
println!("✅ Valid filter");
println!("{:#?}", filter);
}
Err(e) => {
println!("❎ Invalid filter");
println!("{}", e.to_string());
}
}
}