'Parse an identifier and return it (possibly an empty string).
Updates ``pos``.'

def _parse_ident(self):

    remainder = self.string[self.pos:]
    ident = re.match('\\w*', remainder).group(0)
    self.pos += len(ident)
    return ident
