Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/freddiehaddad/shuntingyard

Simple calculator using the Shunting Yard algorithm
https://github.com/freddiehaddad/shuntingyard

calculator go golang leetcode leetcode-go leetcode-golang leetcode-solutions parser reverse-polish-notation shunting-yard-algorithm

Last synced: 16 days ago
JSON representation

Simple calculator using the Shunting Yard algorithm

Awesome Lists containing this project

README

        

# Shunting Yard Algorithm

The program is simple implementation of the [Shunting Yard Algorithm] that
supports addition and subtraction of positive and negative integers. It uses
[Reverse Polish notation] to structure the input and perform the evaluation.
Supported operators are:

- Plus (+)
- Minus (-)
- Parentheses

Precedence is give to expressions surrounded by parentheses. Evaluation is
left-associative.

[reverse polish notation]: https://en.wikipedia.org/wiki/Reverse_Polish_notation
[shunting yard algorithm]: https://en.wikipedia.org/wiki/Shunting_yard_algorithm