parameters: (self, type_, value, newstate, prefix, start_pos)
docstring: Shift a token.  (Internal)
docstring_summary: Shift a token.  (Internal)
docstring_tokens: Shift a token . ( Internal )
function: def _shift(self, type_, value, newstate, prefix, start_pos):
          """Shift a token.  (Internal)"""
          dfa, state, node = self.stack[-1]
          newnode = self.convert_leaf(self.grammar, type_, value, prefix, start_pos)
          node[-1].append(newnode)
          self.stack[-1] = (dfa, newstate, node)
function_tokens: def _shift ( self , type_ , value , newstate , prefix , start_pos ) : dfa , state , node = self . stack [ - 1 ] newnode = self . convert_leaf ( self . grammar , type_ , value , prefix , start_pos ) node [ - 1 ] . append ( newnode ) self . stack [ - 1 ] = ( dfa , newstate , node )