Ejemplo n.º 1
0
 def __get_rules(self, lines: List[str], facts: List[Fact]) -> List[Rule]:
     ans = []
     for line in lines:
         line = line.strip()
         if not line:
             continue
         ans.append(Rule.init_from_str(line, facts))
     return ans