Also, to take my mind of the RuleCompiler issue I've implemented an interactive console for pyRete.
>>> import pyReteIt's not much and it's not too pretty but it only took a couple of hours to make and it will do for now.
>>> pyRete.interact()
pyRete> @Rule
....... def foo(a = int):
....... if a == 2:
....... print a
.......
pyRete> assert_fact(2)
pyRete> run()
2
pyRete> ^Z
>>>
Inga kommentarer:
Skicka en kommentar
Obs! Endast bloggmedlemmar kan kommentera.