

def Rules(self, tokens, _parent=None):
    _context = self.Context(_parent, self._scanner, 'Rules', [tokens])
    rul = []
    while (self._peek('"rule"', 'EOF', context=_context) == '"rule"'):
        self._scan('"rule"', context=_context)
        ID = self._scan('ID', context=_context)
        OptParam = self.OptParam(_context)
        self._scan('":"', context=_context)
        ClauseA = self.ClauseA(ID, tokens, _context)
        rul.append((ID, OptParam, ClauseA))
    return rul

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