code: def load_bnf_file(filepath, repository = None):
      
      linelist = []
      with open(filepath,'r') as mlfile:
          for line in mlfile:
              linelist.append(line)
      return strlist_to_production_set(linelist, repository)
docs: Converts a bnf file into a BNFGrammar instance