An open API service indexing awesome lists of open source software.

https://github.com/r366y/rust_simple_calculator

A simple CLI calculator written in Rust,
https://github.com/r366y/rust_simple_calculator

calculator cli-app learning-rust rust

Last synced: 8 months ago
JSON representation

A simple CLI calculator written in Rust,

Awesome Lists containing this project

README

          

A simple command line calculator written in Rust

```
Rust calculator
Enter expression to calculate (or 'quit' to exit)
> (1+2) * 3 / 5
res = 1.8
> 2 ^3
res = 8
> d
Invalid character: d
Error: Invalid expression
> quit

```

It supports parenthesis __(__ , __)__ and some simple operators '+' , '-' , '*' ,'/', '^'.