parse *.rule file