def choice(parsers):
    """Return a parser which is a choice (|) of the input parsers."""
    p = None
    for parser in parsers:
        if p is None:
            p = parser
        else:
            p = p | parser
    return p