javascript Programming Glossary: tok.op
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
Generate syntax tree for simple math operations http://stackoverflow.com/questions/2705727/generate-syntax-tree-for-simple-math-operations c case ' ' case ' ' case ' ' case ' ' case ' ' case ' ' tok.op c tok.type TOK_OPERATOR return tok case '0' case '1' case '2'.. var tok peekNextToken while tok.type TOK_OPERATOR tok.op ' ' tok.op ' ' skipNextToken var node node.op tok.op node.left.. tok peekNextToken while tok.type TOK_OPERATOR tok.op ' ' tok.op ' ' skipNextToken var node node.op tok.op node.left left node.right..
|