def METHOD_NAME(tokens):
    ors = _split_at("|", tokens)
    phrases = []
    for or_tokens in ors:
        phrases.append(_phrase_parser(or_tokens))
    # In the degenerate case where there is only one operand
    # we just return the operand (or(q) == q)
    if len(phrases) == 1:
        return phrases[0]
    else:
        return {"@type": "PathOr", "or": phrases}