def to_dict(self, dict_type=collections.OrderedDict):
return self._build_dict(self.tree, dict_type=dict_type)<EOL>
Get the dictionary representation of the current parser.

        :param class dict_type: The dictionary type to build
        :return: The resulting dictionary
        :rtype: dict