¡@

Home 

javascript Programming Glossary: operand2

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

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