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

https://github.com/ksaveras/math-calculator

Simple math expression parser and a calculator.
https://github.com/ksaveras/math-calculator

ast library operator-precedence package php php7 reverse-polish-calculator reverse-polish-notation shunting-yard-algorithm

Last synced: about 1 month ago
JSON representation

Simple math expression parser and a calculator.

Awesome Lists containing this project

README

        

# Math Calculator
[![Build Status](https://travis-ci.com/ksaveras/math-calculator.svg?branch=master)](https://travis-ci.com/ksaveras/math-calculator)

References

* https://en.wikipedia.org/wiki/Abstract_syntax_tree
* https://en.wikipedia.org/wiki/Reverse_Polish_notation
* https://en.wikipedia.org/wiki/Shunting-yard_algorithm
* https://en.wikipedia.org/wiki/Operator-precedence_parser

## Tests

```
composer test
```

## Code quality

```
composer phpstan && composer phpcsfix
```