Crates.io | rxcalc |
lib.rs | rxcalc |
version | 1.0.5 |
source | src |
created_at | 2024-01-25 03:37:23.433964 |
updated_at | 2024-05-09 10:31:13.384497 |
description | An expression calculator, originally written in Scratch. |
homepage | |
repository | https://github.com/0832k12/rxCalc/ |
max_upload_size | |
id | 1113427 |
size | 59,599 |
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