Home | History | Annotate | Download | only in ply

Lines Matching refs:statestack

250         del self.statestack[:]
255 self.statestack.append(0)
316 statestack = [ ] # Stack of parsing states
317 self.statestack = statestack
326 statestack.append(0)
362 statestack.append(t)
420 del statestack[-plen:]
426 state = goto[statestack[-1]][pname]
427 statestack.append(state)
432 statestack.pop()
433 state = statestack[-1]
465 state = goto[statestack[-1]][pname]
466 statestack.append(state)
471 statestack.pop()
472 state = statestack[-1]
544 # case 1: the statestack only has 1 entry on it. If we're in this state, the
548 if len(statestack) <= 1 and lookahead.type != "$end":
556 # case 2: the statestack has a couple of entries on it, but we're
580 statestack.pop()
581 state = statestack[-1] # Potential bug fix
627 statestack = [ ] # Stack of parsing states
628 self.statestack = statestack
637 statestack.append(0)
663 statestack.append(t)
709 del statestack[-plen:]
712 state = goto[statestack[-1]][pname]
713 statestack.append(state)
718 statestack.pop()
719 state = statestack[-1]
748 state = goto[statestack[-1]][pname]
749 statestack.append(state)
754 statestack.pop()
755 state = statestack[-1]
817 # case 1: the statestack only has 1 entry on it. If we're in this state, the
821 if len(statestack) <= 1 and lookahead.type != '$end':
829 # case 2: the statestack has a couple of entries on it, but we're
853 statestack.pop()
854 state = statestack[-1] # Potential bug fix
899 statestack = [ ] # Stack of parsing states
900 self.statestack = statestack
909 statestack.append(0)
935 statestack.append(t)
970 del statestack[-plen:]
973 state = goto[statestack[-1]][pname]
974 statestack.append(state)
979 statestack.pop()
980 state = statestack[-1]
1003 state = goto[statestack[-1]][pname]
1004 statestack.append(state)
1009 statestack.pop()
1010 state = statestack[-1]
1072 # case 1: the statestack only has 1 entry on it. If we're in this state, the
1076 if len(statestack) <= 1 and lookahead.type != '$end':
1084 # case 2: the statestack has a couple of entries on it, but we're
1108 statestack.pop()
1109 state = statestack[-1] # Potential bug fix