parameters: (self, type, value, newstate, context)
docstring: Shift a token.  (Internal)
docstring_summary: Shift a token.  (Internal)
docstring_tokens: Shift a token . ( Internal )
function: def shift(self, type, value, newstate, context):
          """Shift a token.  (Internal)"""
          dfa, state, node = self.stack[-1]
          newnode = (type, value, context, None)
          newnode = self.convert(self.grammar, newnode)
          if newnode is not None:
              node[-1].append(newnode)
          self.stack[-1] = (dfa, newstate, node)
function_tokens: def shift ( self , type , value , newstate , context ) : dfa , state , node = self . stack [ - 1 ] newnode = ( type , value , context , None ) newnode = self . convert ( self . grammar , newnode ) if newnode is not None : node [ - 1 ] . append ( newnode ) self . stack [ - 1 ] = ( dfa , newstate , node )