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
- Host: GitHub
- URL: https://github.com/fbac/calc-o-matic
- Owner: fbac
- License: gpl-3.0
- Created: 2022-11-19T14:27:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T12:17:53.000Z (over 3 years ago)
- Last Synced: 2024-12-29T16:40:08.912Z (over 1 year ago)
- Topics: algorithm-challenges, algorithms, calculator, calculator-app, go, golang, shunting-yard-algorithm
- Language: Go
- Homepage:
- Size: 1.63 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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