'Put the next symbol in self.token if accepted, then call gettok()'

def accept(self, id):

    if (self.next and self.next.is_a(id)):
        self.token = self.next
        self.gettok()
        return True
    return False
