clipspy-1.0.0/clips/agenda.py
def rules(self) -> iter:
        """Iterate over the defined Rules."""
        rule = lib.GetNextDefrule(self._env, ffi.NULL)

        while rule != ffi.NULL:
            name = ffi.string(lib.DefruleName(rule)).decode()
            yield Rule(self._env, name)

            rule = lib.GetNextDefrule(self._env, rule)
Iterate over the defined Rules.
Iterate over the defined Rules.
Iterate over the defined Rules .
def rules(self) -> iter:
        rule = lib.GetNextDefrule(self._env, ffi.NULL)
        while rule != ffi.NULL:
            name = ffi.string(lib.DefruleName(rule)).decode()
            yield Rule(self._env, name)
            rule = lib.GetNextDefrule(self._env, rule)
def rules ( self ) -> iter : rule = lib . GetNextDefrule ( self . _env , ffi . NULL ) while rule != ffi . NULL : name = ffi . string ( lib . DefruleName ( rule ) ) . decode ( ) yield Rule ( self . _env , name ) rule = lib . GetNextDefrule ( self . _env , rule )
Iterate over the defined Rules.
Iterate over the defined Rules .
"""Iterate over the defined Rules."""
self