'Shift a token.  (Internal)'

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)
