Marvin is terminal calculator written in Rust.
Build of Marvin is made by Rust tool Cargo
To build Marvin, you can use the following command:
*cargo build* to compile in debug mode
*cargo build --release* to compile in release mode
To launch Marvin units tests, you can use the following command:
*cargo test* to launch tests in debug mode
*cargo test --release* to launch tests in release mode
Marvin use Taz library to evaluate expression given by user. To interact with user, we have created a terminal user interface based on Crossterm library.
Marvin application can be launched by Cargo with following command:
*cargo run* to launch in debug mode
*cargo run --release* to launch in release mode
Then we have following view
To quit Marvin application, we can write quit or use ESC key.
Marvin can work with simple expression and return result in variable named last. This can be reused in other expression. Moreover, we can define variable with an expression. Marvin evaluate it and put result in this variable. Then we can reuse these variables in other expression.
Here are some examples:
Marvin library is free software, you can redistribute it and/or modify it under the terms of the GNU General Public License.