'Parse a set of alternative regexps.'

def parse_alt(self):

    re = self.parse_seq()
    if (self.c == '|'):
        re_list = [re]
        while (self.c == '|'):
            self.next()
            re_list.append(self.parse_seq())
        re = Alt(*re_list)
    return re
