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.
- Host: GitHub
- URL: https://github.com/ksaveras/math-calculator
- Owner: ksaveras
- License: mit
- Archived: true
- Created: 2020-01-25T14:56:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T07:46:25.000Z (almost 5 years ago)
- Last Synced: 2025-05-05T09:09:38.035Z (about 1 month ago)
- Topics: ast, library, operator-precedence, package, php, php7, reverse-polish-calculator, reverse-polish-notation, shunting-yard-algorithm
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Math Calculator
[](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
```