fiasto 0.2.7

High-performance modern Wilkinson's formula parsing for statistical models. Parses R-style formulas into structured JSON metadata supporting linear models, mixed effects, and complex statistical specifications.
Documentation
use fiasto::parse_formula;

fn main() {
    // Test different error scenarios
    let test_cases = [
        "y ~ x +",           // trailing plus
        "y ~ + x",           // leading plus  
        "~ x",               // missing response
        "y ~ x (",           // unmatched paren
        "y ~",               // incomplete formula
    ];
    
    for (i, formula) in test_cases.iter().enumerate() {
        println!("\n=== Test case {} ===", i + 1);
        println!("Formula: {}", formula);
        if parse_formula(formula).is_err() {
            // Error is already printed by parse_formula via eprintln!
        }
    }
}