My calcool cli app and library re-written in rust. Calcool uses a pratt parser to parse and evaluate expressions
Simple. Run this command:
cargo run
Simple expressions:
2 * 3 + 4 * 8
Function calls:
sin(90deg) ^ cos(45deg) + tan(2rad)
Variables:
result = 12 * abs(-42)
result + 10e+3
Define functions:
def f2c(f) = (f - 32)/1.8
f2c(70)
Calcool is free software and it is licensed under GPL-3 or newer. For more info see LICENSE.