code: def errors_as_dict(self):
          
          errors = []
  
          for e in self.errors:
  
              errors.append({
                  'file': e.term.file_name,
                  'row': e.term.row if e.term else '<unknown>',
                  'col': e.term.col if e.term else '<unknown>',
                  'term': e.term.join if e.term else '<unknown>',
                  'error': str(e)
              })
  
          return errors
docs: Return parse errors as a dict