#expression #eval #calc #scratch #0832

bin+lib rxcalc

An expression calculator, originally written in Scratch

4 stable releases

1.0.5 May 9, 2024
1.0.4 May 8, 2024
1.0.3 Mar 5, 2024
1.0.2 Feb 13, 2024
1.0.1 Jan 25, 2024

#362 in Math

MIT/Apache

60KB
1.5K SLoC

How To Use

Place this piece of code at the top of your file:

use rxcalc::calc;

Then, you can use rcalc like this:

calc("1*(1+1)"); //return 2

You can also use it as a separate project:

$ cargo run -- '1*(1+1)'
2

source code

No runtime deps