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
1
2
3
4
5
6
7
8
use fiasto::lex_formula;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let input = "mpg ~ cyl + wt*hp + poly(disp, 4) - 1";
    let tokens = lex_formula(input)?;
    println!("{}", serde_json::to_string_pretty(&tokens)?);
    Ok(())
}