Lines Matching refs:state
144 var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;
146 // retreive state number from top of stack
147 state = stack[stack.length-1];
150 if (this.defaultActions[state]) {
151 action = this.defaultActions[state];
155 // read action for current state and first input
156 action = table[state] && table[state][symbol];
166 for (p in table[state]) if (this.terminals_[p] && p > 2) {
197 // check for error recovery rule in this state
198 if ((TERROR.toString()) in table[state]) {
201 if (state == 0) {
205 state = stack[stack.length-1];
210 state = stack[stack.length-1];
211 action = table[state] && table[state][TERROR];
217 throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);
228 stack.push(action[1]); // push state
273 // goto new state = table[STATE][NONTERMINAL]