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