formula 0.1.0

A parser and evaluator of spreadsheet-like formulas
Documentation
1
2
3
4
5
6
7
8
use formula::{Expr, Formula, Result};

fn main() -> Result<()> {
    let formula = Formula::new("=CONCAT(UPPER(TRIM('   Hello ')), ' ', 'world!')")?;
    let value = formula.parse()?;
    assert_eq!(value, Expr::String("HELLO world!".to_string()));
    Ok(())
}