3 releases (1 stable)

1.0.0 Aug 15, 2024
0.1.1 Feb 2, 2023
0.1.0 Feb 2, 2023

#623 in Text processing

Download history 110/week @ 2024-08-13 7/week @ 2024-09-10 4/week @ 2024-09-17 21/week @ 2024-09-24 24/week @ 2024-10-01

56 downloads per month

Custom license

82KB
371 lines

Tazui

Tazui is terminal calculator written in Rust.

Build

Build of Tazui is made by Rust tool Cargo

To build Tazui, you can use the following command:

*cargo build* to compile in debug mode
*cargo build --release* to compile in release mode

To launch Tazui 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

Documentation

Tazui use Taz library to evaluate expression given by user. To interact with user, we have created a terminal user interface based on Crossterm library.

Tazui 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 Tazui application, we can write quit or use ESC key.

Tazui 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. Tazui evaluate it and put result in this variable. Then we can reuse these variables in other expression.

We can also define reusable expression. Tazui evaluate it and put it name and current result in variables. Then we can modify variables and the expression is updated automaticaly.

Dependencies

~2–11MB
~131K SLoC