XLFormula Engine
XLFormula Engine is a Rust crate for parsing and evaluating Excel formulas. It currently works with f32 types.
Features
It supports:
- Any numbers, negative and positive, as float or integer;
- Arithmetic operations +, -, /, *, ^;
- Logical operations AND(), OR(), NOT(), XOR();
- Comparison operations =, >, >=, <, <=, <>;
- String operation & (concatenation);
- Build-in variables TRUE, FALSE;
- Excel functions ABS(), SUM(), PRODUCT().
Installation
Add the corresponding entry to your Cargo.toml dependency list:
= "0.1.0"
xlformula_engine
and add this to your crate root:
extern crate xlformula_engine;
Examples
Here is a simple example of parsing an Excel formula string and evaluating to a result:
extern crate xlformula_engine;
use calculate;
use parse_formula;
Another example with a formula with references:
extern crate xlformula_engine;
use calculate;
use parse_formula;
use types;
License
Licensed under MIT License (see the LICENSE file for the full text).
Contact
Please feel free to contact us at jirada.herbst@data2impact.com.