def METHOD_NAME(self):
    alternatives = []
    while True:
        alternatives.append(self.parseAlternative())
        if not self.isEOF():
            self.expect_character('|')
        else:
            break
    return {'type': 'Disjunction', 'contents': alternatives}