A simple CLI calculator written in Rust.
- addition +
- subtraction -
- multiplication *
- division /
- parentheses ()
- decimal and hexadecimal (with
0x
prefix) number systems
To build the executable use Cargo.
Build and run:
cargo run --release
Build only:
cargo build --release
The executable output path is /target/release/calculator
.
- Run the executable.
- Type an arithmetic expression and press Enter to evaluate.
- Press Ctrl+C to exit.
MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)