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

https://github.com/fbac/calc-o-matic

Basic calculator based on Shunting Yard algorithm
https://github.com/fbac/calc-o-matic

algorithm-challenges algorithms calculator calculator-app go golang shunting-yard-algorithm

Last synced: 6 months ago
JSON representation

Basic calculator based on Shunting Yard algorithm

Awesome Lists containing this project

README

          

# calc-o-matic

**calc-o-matic** is a basic calculator based in [Shunting yard algorithm](https://en.wikipedia.org/wiki/Shunting_yard_algorithm)

## Usage

### Makefile targets

```shell
# build
make build

# test
make test

# clean
make clean

# generate coverage html report
make coverage

# generate docs
make docs
```

### calc-o-matic CLI

```shell
# write math expression
calc-o-matic /> 1+ 1 * (2/2) - 10^7

# cancel with Ctrl+C
calc-o-matic /> ^C
exiting calc-o-matic
```

## Shunting Yard algorithm

Markdown Monster icon