code: def parse_entry(source, loc, tokens):
      
      type_ = tokens[1].lower()
      entry_type = structures.TypeRegistry.get_type(type_)
      if entry_type is None or not issubclass(entry_type, structures.Entry):
          raise exceptions.UnsupportedEntryType(
                  "%s is not a supported entry type" % type_
              )
      new_entry = entry_type()
      new_entry.name = tokens[3]
      for key, value in [t for t in tokens[4:-1] if t != ',']:
          new_entry[key] = value
      return new_entry
docs: Converts the tokens of an entry into an Entry instance. If no applicable
      type is available, an UnsupportedEntryType exception is raised.