Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/MikaelVallenet/Bistromatic

EPITECH - First year project: Creation of a calculator able to display the result of the evaluation of an arithmetic expression composed of integers of infinite size expressed in any base
https://github.com/MikaelVallenet/Bistromatic

bistro bistro-matic c calculator epitech epitech-project programming-language

Last synced: about 16 hours ago
JSON representation

EPITECH - First year project: Creation of a calculator able to display the result of the evaluation of an arithmetic expression composed of integers of infinite size expressed in any base

Awesome Lists containing this project

README

        

# Bistromatic

## Warning :warning:

I want to specify that for this project, we were beginners.\
I and David made the program 3 weeks after we start programming,\
which explains a rough code and some memory errors. \
Despite that we got 100% in the correction and the best project of the class.

## Description :sunrise_over_mountains:

The goal of this project is to write a program that will display the result of an evaluated mathematical expression.\
The expression will be composed of infinite integers that can be expressed in any base.\
The program must handle the following operators: +-*/%, parentheses, operation priorities and syntax errors,\
but not float numbers.

Most of the functions of the lib C were forbidden,\
we were allowed to use : write, exit, malloc, free and read

![Exemple](./assets/exemple.png)

## Installation :mag_right:

```
git clone https://github.com/Mikatech/Bistromatic.git
cd Bistromatic
make
```

## Results :trophy:

| Label | Mark |
|:----------------------------------------------------------:|:------------------:|
| Syntax Errors | 12 / 12 |
| Addition | 14 / 14 |
| Substraction | 26 / 26 |
| Multiplication | 18 / 18 |
|Division|22 / 22|
|Modulo|22 / 22|
|Base & operators | 12 / 12 |
|Eval Expr| 24 / 24 |

## Bonus :package:

As a bonus, we have created a graphical interface using GTK

![Bonus](./assets/bonus.png)

------------
## Maintainers :sunglasses:

- [Mikaël Vallenet](https://github.com/Mikatech)
- [David Gozlan](https://github.com/Davphla)