def add_format(self, entry):
entry = entry[<NUM_LIT:10>:-<NUM_LIT:1>]<EOL>info = entry.split('<STR_LIT:U+002C>')<EOL>if len(info) < <NUM_LIT:4>:<EOL><INDENT>return False<EOL><DEDENT>for v in info:<EOL><INDENT>key, value = v.split('<STR_LIT:=>', <NUM_LIT:1>)<EOL>if key == '<STR_LIT>':<EOL><INDENT>self.format[value] = {}<EOL>id_ = value<EOL><DEDENT>elif key == '<STR_LIT>':<EOL><INDENT>if value == '<STR_LIT:A>' or value == '<STR_LIT>':<EOL><INDENT>value = -<NUM_LIT:1><EOL><DEDENT>self.format[id_]['<STR_LIT>'] = value<EOL><DEDENT>elif key == '<STR_LIT>':<EOL><INDENT>self.format[id_]['<STR_LIT:type>'] = self.type_map[value]<EOL><DEDENT>elif key == '<STR_LIT>':<EOL><INDENT>self.format[id_]['<STR_LIT:description>'] = value<EOL>if len(info) > <NUM_LIT:4>:<EOL><INDENT>self.format[id_]['<STR_LIT:description>'] += '<STR_LIT>'.join(info[<NUM_LIT:4>:])<EOL><DEDENT>break<EOL><DEDENT><DEDENT>return True<EOL>
Parse and store the format field