Closed mr-niels-christensen closed 10 years ago
Bacon&eggs is a simple "mutual recursion"-like example along these lines:
r.add_rule(('good', ('bacon', 'X')), ('nice', 'X')) r.add_rule(('nice', ('eggs', 'X')), ('good', 'X')) r.add_fact(('good', 'toast')) r.add_fact(('nice', 'beans'))
Bacon&eggs is a simple "mutual recursion"-like example along these lines: