Show HN: A simple calculator implemented using the shunting yard algorithm
victorribeiro.com
victorribeiro.com
Here's the link to the repository https://github.com/victorqribeiro/shuntingYard
Let me know what you think
By the way, I found one or two bugs.
The empty parentheses alone are treated as undefined:
> ()
undefined
And I think any equation using empty parentheses as an expression gets treated as NaN: > 5 + ()
NaN
Empty parentheses should probably just be a parse error.https://github.com/victorqribeiro/shuntingYard/pull/1/commit...