¡@

Home 

javascript Programming Glossary: currtoken

Generate syntax tree for simple math operations

http://stackoverflow.com/questions/2705727/generate-syntax-tree-for-simple-math-operations

your way down using this structure. parser.js var input currToken pos var TOK_OPERATOR 1 var TOK_NUMBER 2 var TOK_EOF 3 function.. TOK_EOF return tok function getNextToken var ret if currToken ret currToken else ret nextToken currToken undefined return.. return tok function getNextToken var ret if currToken ret currToken else ret nextToken currToken undefined return ret function peekNextToken..