

def ClauseB(self, rule, tokens, _parent=None):
    _context = self.Context(_parent, self._scanner, 'ClauseB', [rule, tokens])
    v = []
    while (self._peek('STR', 'ID', 'LP', 'LB', 'STMT', 'OR', 'RP', 'RB', '"rule"', 'EOF', context=_context) in ['STR', 'ID', 'LP', 'LB', 'STMT']):
        ClauseC = self.ClauseC(rule, tokens, _context)
        v.append(ClauseC)
    return cleanup_sequence(rule, v)

dataset/ETHPy150Open smurfix/yapps/yapps/grammar.py ParserDescription.ClauseB/original