¡@

Home 

javascript Programming Glossary: operand1

How can I modify my Shunting-Yard Algorithm so it accepts unary operators?

http://stackoverflow.com/questions/1593080/how-can-i-modify-my-shunting-yard-algorithm-so-it-accepts-unary-operators

currentToken else if isOperator currentToken var operand1 evalStack.pop var operand2 evalStack.pop var result PerformOperation.. evalStack.pop var result PerformOperation parseInt operand1 parseInt operand2 currentToken evalStack.push result return.. result return evalStack.pop function PerformOperation operand1 operand2 operator switch operator case ' ' return operand1..