

def _get_group_pattern(self, flags):
    patterns = []
    sub_pattern = sre_parse.Pattern()
    sub_pattern.flags = flags
    for (phrase, action) in action.lexicon:
        patterns.append(sre_parse.SubPattern(sub_pattern, [(SUBPATTERN, ((len(patterns) + 1), sre_parse.parse(phrase, flags)))]))
    sub_pattern.groups = (len(patterns) + 1)
    group_pattern = sre_parse.SubPattern(sub_pattern, [(BRANCH, (None, patterns))])
    return sre_compile.compile(group_pattern)

dataset/ETHPy150Open espeed/bulbs/bulbs/groovy.py Scanner._get_group_pattern/VarMisuse@38/48 `self`->`action`