code: def _read_file(fname):
      
      with open(fname) as input_file:
          re_grammar = [x.strip('\n') for x in input_file.readlines()]
      return re_grammar
docs: Args:
          fname (str): Name of the grammar file to be parsed
      Return:
          list: The grammar rules