bool-tag-expr 0.1.0-beta.2

Parse boolean expressions of tags for filtering and selecting
Documentation
//!
//! The boolean tag experssion tutorial
//!
//! Note that everything (?) is singular so search for "chemist" not "chemists",
//! and "person" not "people"
//!

/// Get all tutorial questions
#[rustfmt::skip] 
fn _tutorial_questions() {
    // "Write a boolean expression to find..."

    let _questions = vec![
        ("everything british", "british"),
        ("all organisations", "organisation"),
        ("all british people", "british & person"),
        ("everything british or american", "british | american"),
        ("all british and american people", "person & (british | american)"),
        ("all french scientists", "french & scientist"),
        ("all german and italian painters", "(german | italian) & painter"),
        ("all italian painters who were not part of the renaissance", "italian & painter & !renaissance"),

        // These 3 are equivalent (important to show the different raw strings I think)
        ("all british and american scientists who are not chemists", "((british & scientist) | (american & scientist)) & !chemist"),
        ("all british and american scientists who are not chemists", "(scientist & (british | american)) & !chemist"),
        ("all british and american scientists who are not chemists", "!chemist & (scientist & (british | american))"),
    ];
}