mr-niels-christensen / pyrules

MIT License
0 stars 0 forks source link

Parse rules in Rulebook's __init__() #15

Closed mr-niels-christensen closed 8 years ago

mr-niels-christensen commented 9 years ago

Call each rule with "dummy terms" and an artificial self, for which every method returns a parse tree with node type "call" and a reference to the called rule and the passed parameters.

mr-niels-christensen commented 9 years ago

See http://stackoverflow.com/questions/2144109/find-all-decorated-functions-in-a-module http://stackoverflow.com/questions/34439/finding-what-methods-an-object-has