A Rust-based conceptual calculator designed to explore the fundamentals of the language.
Euclides is a simple calculator that performs arithmetic operations using only addition and subtraction. It supports complex expressions and evaluates them using Reverse Polish Notation (postfix notation), along with infix and prefix notations.
- Basic Operations: Addition, Subtraction, Multiplication, and Division.
- Notation Support: Infix, Prefix, and Postfix notations.
- Expression Evaluation: Computes results for given expressions.
To use Euclides, run the program and input an expression in one of the supported notations. Specify the notation by prefixing your input with prefix:
, postfix:
, or infix:
.
-
Infix Notation:
$ infix: 3 + 4 * 2 / ( 1 - 5 )
-
Prefix Notation:
$ prefix: + 3 / * 4 2 - 1 5
-
Postfix Notation:
$ postfix: 3 4 2 * 1 5 - / +
- Implement basic operations
- Support infix, prefix, and postfix notations
- Add support for advanced/complex operations
- Develop a graphical user interface (GUI)
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the BSD Zero Clause License.