def METHOD_NAME():
    from pyparsing import CharsNotIn, ParserElement, Suppress, ZeroOrMore
    ParserElement.enablePackrat()
    word = CharsNotIn(f"{PERIOD}{LBRACK}{RBRACK}")
    idx = Suppress(LBRACK) + word + Suppress(RBRACK)
    attr = Suppress(PERIOD) + word
    parser = word + ZeroOrMore(attr ^ idx)
    parser.setParseAction(PERIOD.join)
    return parser